@stdlib/stats
Version:
Standard library statistical functions.
87 lines (66 loc) • 1.76 kB
Plain Text
{{alias}}( p, a, b )
Evaluates the quantile function for a Kumaraswamy's double bounded
distribution with first shape parameter `a` and second shape parameter `b`
at a probability `p`.
If `p < 0` or `p > 1`, the function returns `NaN`.
If provided `NaN` as any argument, the function returns `NaN`.
If `a <= 0` or `b <= 0`, the function returns `NaN`.
Parameters
----------
p: number
Input probability.
a: number
First shape parameter.
b: number
Second shape parameter.
Returns
-------
out: number
Evaluated quantile function.
Examples
--------
> var y = {{alias}}( 0.5, 1.0, 1.0 )
0.5
> y = {{alias}}( 0.5, 2.0, 4.0 )
~0.399
> y = {{alias}}( 0.2, 2.0, 2.0 )
~0.325
> y = {{alias}}( 0.8, 4.0, 4.0 )
~0.759
> y = {{alias}}( -0.5, 4.0, 2.0 )
NaN
> y = {{alias}}( 1.5, 4.0, 2.0 )
NaN
> y = {{alias}}( 2.0, -1.0, 0.5 )
NaN
> y = {{alias}}( 2.0, 0.5, -1.0 )
NaN
> y = {{alias}}( NaN, 1.0, 1.0 )
NaN
> y = {{alias}}( 0.0, NaN, 1.0 )
NaN
> y = {{alias}}( 0.0, 1.0, NaN )
NaN
{{alias}}.factory( a, b )
Returns a function for evaluating the quantile function of a Kumaraswamy's
double bounded distribution with first shape parameter `a` and second shape
parameter `b`.
Parameters
----------
a: number
First shape parameter.
b: number
Second shape parameter.
Returns
-------
quantile: Function
Quantile function.
Examples
--------
> var myQuantile = {{alias}}.factory( 0.5, 1.0 );
> var y = myQuantile( 0.8 )
~0.64
> y = myQuantile( 0.3 )
~0.09
See Also
--------