Returns the probability distribution function evaluated at the given value.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public override double PDF( double x ) |
| Visual Basic (Declaration) |
|---|
Public Overrides Function PDF ( _ x As Double _ ) As Double |
| Visual C++ |
|---|
public: virtual double PDF( double x ) override |
Parameters
- x
- Type: System..::.Double
The number of trials
Return Value
The probability of obtaining this.N successes in x trials, where this.P is the probability of success on each trial.
Remarks
Returns zero for x < N. It's impossible to have more successes than
trials.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if the number of trials is set to a negative value. |