ParameterVector<T>.Map Method

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Map(Func<Vector<T>, T>, Func<Vector<T>, Vector<T>, Vector<T>>) Constructs a parameter by applying a function to the parameters in this vector.
Map<U>(Func<T, U>) Applies a function to the elements of a vector and returns the result.

ParameterVector<T>.Map(Func<Vector<T>, T>, Func<Vector<T>, Vector<T>, Vector<T>>)

Constructs a parameter by applying a function to the parameters in this vector.
C#
public Parameter<T> Map(
	Func<Vector<T>, T> function,
	Func<Vector<T>, Vector<T>, Vector<T>> gradient
)

Parameters

function  Func<Vector<T>, T>
A delegate that maps parameter values to a real number.
gradient  Func<Vector<T>, Vector<T>, Vector<T>>
A delegate that maps parameter values to the gradient of function.

Return Value

Parameter<T>
A new parameter.

See Also