StreamingStatisticsEntropy Method |
Calculates the entropy of a stream of double values.
Returns NaN if any of the values in the stream are NaN.
Namespace: Altaxo.Calc.StatisticsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static double Entropy(
IEnumerable<double> stream
)
Parameters
- stream IEnumerableDouble
- The input stream to evaluate.
Return Value
DoubleThe Shannon entropy of the stream in bits, or
double.NaN if any value in the stream is
NaN.
See Also