Table of Contents

Interface IAugmentationPolicy<T, TData>

Namespace
AiDotNet.Augmentation
Assembly
AiDotNet.dll

Interface for composable augmentation policies.

public interface IAugmentationPolicy<T, TData> : IAugmentationPolicy

Type Parameters

T

The numeric type for calculations.

TData

The data type being augmented.

Inherited Members

Remarks

Policies define collections of augmentations and their application strategies.

Properties

Augmentations

Gets the augmentations in this policy.

IList<IAugmentation<T, TData>> Augmentations { get; }

Property Value

IList<IAugmentation<T, TData>>

Methods

Apply(TData, AugmentationContext<T>?)

Applies the policy to input data.

TData Apply(TData data, AugmentationContext<T>? context = null)

Parameters

data TData

The input data.

context AugmentationContext<T>

The augmentation context.

Returns

TData

The augmented data.

GetConfiguration()

Gets the parameters of this policy for serialization.

IDictionary<string, object> GetConfiguration()

Returns

IDictionary<string, object>

A dictionary of policy configuration.