@stdlib/stats
Version:
Standard library statistical functions.
37 lines (26 loc) • 627 B
Plain Text
{{alias}}( a, b, c )
Returns the skewness of a triangular distribution.
If provided `NaN` as any argument, the function returns `NaN`.
If the condition `a <= c <= b` is not satisfied, the function returns `NaN`.
Parameters
----------
a: number
Minimum support.
b: number
Maximum support.
c: number
Mode.
Returns
-------
out: number
Skewness.
Examples
--------
> var v = {{alias}}( 0.0, 1.0, 0.8 )
~-0.476
> v = {{alias}}( 4.0, 12.0, 5.0 )
~0.532
> v = {{alias}}( 2.0, 8.0, 5.0 )
0.0
See Also
--------