Evaluates the logistic probability density function.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public static double Logistic(
	double x,
	double mu,
	double s
)
Visual Basic (Declaration)
Public Shared Function Logistic ( _
	x As Double, _
	mu As Double, _
	s As Double _
) As Double
Visual C++
public:
static double Logistic(
	double x, 
	double mu, 
	double s
)

Parameters

x
Type: System..::.Double
A double scalar value representing the argument at which the function is to be evaluated.
mu
Type: System..::.Double
A double scalar value representing the location parameter.
s
Type: System..::.Double
A double scalar value representing the scale parameter.

Return Value

A double scalar value representing the probability density function at x.

Remarks

The probability density function of the logistic distribution is

f(x,\mu,s)=\frac{e^{-(x-\mu)/s}}
            {s\left (1+e^{-(x-\mu)/s} \right )^{2}}

where \mu is the location parameter and the scale parameter s \gt 0.

See Also