Calculates the sum of the elements in the given data set.

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

Syntax

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

Parameters

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

Return Value

Sum.

See Also