NonlinearCurve.FromFunction Method

Definition

Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.0

Overload List

FromFunction(Func<Double, Double, Double>, Double[]) Creates a nonlinear curve from a function with one parameter.
FromFunction(Func<Double, Double, Double, Double>, Double[]) Creates a nonlinear curve from a function with two parameters.
FromFunction(Func<Double, Double, Double, Double, Double>, Double[]) Creates a nonlinear curve from a function with three parameters.
FromFunction(Func<Double, Double, Double, Double, Double, Double>, Double[]) Creates a nonlinear curve from a function with four parameters.
FromFunction(Func<Double, Double, Double, Double, Double, Double, Double>, Double[]) Creates a nonlinear curve from a function with five parameters.

FromFunction(Func<Double, Double, Double>, Double[])

Creates a nonlinear curve from a function with one parameter.
C#
public static NonlinearCurve FromFunction(
	Func<double, double, double> function,
	params double[] parameters
)

Parameters

function  Func<Double, Double, Double>
The function that defines the curve. The first argument is the parameter, and the second argument is the x-value.
parameters  Double[]
Optional. The initial values of the parameter.

Return Value

NonlinearCurve
A NonlinearCurve object that represents the curve defined by function.

FromFunction(Func<Double, Double, Double, Double>, Double[])

Creates a nonlinear curve from a function with two parameters.
C#
public static NonlinearCurve FromFunction(
	Func<double, double, double, double> function,
	params double[] parameters
)

Parameters

function  Func<Double, Double, Double, Double>
The function that defines the curve. The first two arguments are the parameters, and the third argument is the x-value.
parameters  Double[]
The initial values of the parameters.

Return Value

NonlinearCurve
A NonlinearCurve object that represents the curve defined by function.

FromFunction(Func<Double, Double, Double, Double, Double>, Double[])

Creates a nonlinear curve from a function with three parameters.
C#
public static NonlinearCurve FromFunction(
	Func<double, double, double, double, double> function,
	params double[] parameters
)

Parameters

function  Func<Double, Double, Double, Double, Double>
The function that defines the curve. The first three arguments are the parameters, and the fourth argument is the x-value.
parameters  Double[]
The initial values of the parameters.

Return Value

NonlinearCurve
A NonlinearCurve object that represents the curve defined by function.

FromFunction(Func<Double, Double, Double, Double, Double, Double>, Double[])

Creates a nonlinear curve from a function with four parameters.
C#
public static NonlinearCurve FromFunction(
	Func<double, double, double, double, double, double> function,
	params double[] parameters
)

Parameters

function  Func<Double, Double, Double, Double, Double, Double>
The function that defines the curve. The first four arguments are the parameters, and the fifth argument is the x-value.
parameters  Double[]
The initial values of the parameters.

Return Value

NonlinearCurve
A NonlinearCurve object that represents the curve defined by function.

FromFunction(Func<Double, Double, Double, Double, Double, Double, Double>, Double[])

Creates a nonlinear curve from a function with five parameters.
C#
public static NonlinearCurve FromFunction(
	Func<double, double, double, double, double, double, double> function,
	params double[] parameters
)

Parameters

function  Func<Double, Double, Double, Double, Double, Double, Double>
The function that defines the curve. The first five arguments are the parameters, and the sixth argument is the x-value.
parameters  Double[]
The initial values of the parameters.

Return Value

NonlinearCurve
A NonlinearCurve object that represents the curve defined by function.

See Also