Class GradientModel<T>
Default implementation of a gradient model.
public class GradientModel<T> : IGradientModel<T>
Type Parameters
TThe numeric type used for calculations.
- Inheritance
-
GradientModel<T>
- Implements
- Inherited Members
Constructors
GradientModel(Vector<T>)
Initializes a new instance of the GradientModel class.
public GradientModel(Vector<T> parameters)
Parameters
parametersVector<T>The gradient vector.
Properties
Parameters
Gets the gradient vector.
public Vector<T> Parameters { get; }
Property Value
- Vector<T>
Methods
Evaluate(Vector<T>)
Evaluates the gradient at a specific point.
public T Evaluate(Vector<T> input)
Parameters
inputVector<T>The input vector.
Returns
- T
The gradient value at the specified point.