VectorFieldParameterSource<T>

Models & Types · AiDotNet.Models.Parameters

A whole Vector field exposed as a parameter surface.

Implements: IParameterLayoutSource, IVariableLengthParameterSource<T>

How It Works

Takes a setter as well as a getter because the models that hold parameters this way REPLACE the vector on restore rather than writing into it. A source that only read the field would restore into a vector the model no longer references.

Constructors

Constructor Summary
VectorFieldParameterSource(Func<Vector<T>> get, Action<Vector<T>> set) Creates a source over a vector-valued field.

Properties

Property Summary
bool CanResizeOnRestore { get; }
long ParameterCount { get; }

Methods

Method Summary
IReadOnlyList<ParameterSlotDescriptor> GetParameterLayout()
Vector<T> GetParameters()
void SetParameters(Vector<T> parameters)