Returns a dictionary in which the keys are the unique elements in a given data set and the values are how many times they occur.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public static IDictionary Counts(
	int[] data
)
Visual Basic (Declaration)
Public Shared Function Counts ( _
	data As Integer() _
) As IDictionary
Visual C++
public:
static IDictionary^ Counts(
	array<int>^ data
)

Parameters

data
Type: array< System..::.Int32 >[]()[]
An array.

Return Value

A dictionary of unique elements and their counts.

See Also