1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
{{alias}}( a, b, c )
Returns the differential entropy of a triangular distribution (in nats).
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
Entropy.
Examples
--------
> var v = {{alias}}( 0.0, 1.0, 0.8 )
~-0.193
> v = {{alias}}( 4.0, 12.0, 5.0 )
~1.886
> v = {{alias}}( 2.0, 8.0, 5.0 )
~1.599
See Also
--------
|