Click or drag to resize

NMathFunctionsFourParameterLogistic Method

Computes the 4-parameter logistic (4PL) function, using the given vector of function parameters, at the specified point.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double FourParameterLogistic(
	DoubleVector p,
	double x
)

Parameters

p  DoubleVector
The function parameters.
x  Double
The point at which to evaluate the function.

Return Value

Double
The value of the function evaluated at x.
Exceptions
ExceptionCondition
InvalidArgumentExceptionThrown if the length of the parameter vector is not equal to 4.
Remarks
f(x) = p3 + (p0-p3)/(1 + (x/p2)^p1)
, where p0 is the value at 0, p1 is the slope factor, p2 is the mid-range value, and p3 is the value at infinity.
See Also