Click or drag to resize

StatisticsExtensionsGetEntropy Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Calculates entropy, normalizes the output if normalize is true

Namespace:  imbSCI.Core.math
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static double GetEntropy(
	this IEnumerable<double> rFreqs,
	double eps = 1E-06,
	bool normalize = true
)
Request Example View Source

Parameters

rFreqs
Type: System.Collections.GenericIEnumerableDouble
Unsorted array of relative requencies. Relative requency is calculated as absolute freq. / max. freq.
eps (Optional)
Type: SystemDouble
The eps.
normalize (Optional)
Type: SystemBoolean
if set to true [normalize].

Return Value

Type: Double

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableDouble. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also