Computes the 5-parameter logistic (5PL) function, using the given vector of function parameters,
at the specified point.
Namespace:
CenterSpace.NMath.AnalysisAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static double FiveParameterLogistic( DoubleVector p, double x ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function FiveParameterLogistic ( _ p As DoubleVector, _ x As Double _ ) As Double |
| Visual C++ |
|---|
public: static double FiveParameterLogistic( DoubleVector^ p, double x ) |
Parameters
- p
- Type: CenterSpace.NMath.Core..::.DoubleVector
The function parameters.
- x
- Type: System..::.Double
The point at which to evaluate the function.
Return Value
The value of the function evaluated at x.
Remarks
5PL is an extension of 4PL with an additional parameter controlling the degree of asymmetry of the curve:
f(x) = p3 + (p0-p3)/(1 + (x/p2)^p1)^p4, where p0 is the value at 0, p1 is the slope factor, p2 is the mid-range value, p3 is the value at infinity, and p4 is the asymmetry factor.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if the length of the parameter vector is not equal to 5. |