|
MathProbabilityDensityGeometric
Calculates the value of the probability mass function of geometric distribution with the p parameter for a random variable x. In case of error it returns NaN.
double MathProbabilityDensityGeometric(
|
Calculates the value of the probability mass function of geometric distribution with the p parameter for a random variable x. In case of error it returns NaN.
double MathProbabilityDensityGeometric(
|
Calculates the value of the probability mass function of geometric distribution with the p parameter for an array of random variables x[]. In case of error it returns false. Analog of the dgeom() in R.
bool MathProbabilityDensityGeometric(
|
Calculates the value of the probability mass function of geometric distribution with the p parameter for an array of random variables x[]. In case of error it returns false.
bool MathProbabilityDensityGeometric(
|
Parameters
x
[in] Value of random variable.
x[]
[in] Array with the values of random variable.
p
[in] Parameter of the distribution (probability of event occurrence in one test).
log_mode
[in] Flag to calculate the logarithm of the value. If log_mode=true, then the natural logarithm of the probability density is returned.
error_code
[out] Variable to store the error code.
result[]
[out] Array for values of the probability density function.