Adds a subset and a scalar.

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

Syntax

C#
public static Subset Add(
	Subset s,
	int x
)
Visual Basic (Declaration)
Public Shared Function Add ( _
	s As Subset, _
	x As Integer _
) As Subset
Visual C++
public:
static Subset^ Add(
	Subset^ s, 
	int x
)

Parameters

s
Type: CenterSpace.NMath.Stats..::.Subset
A subset.
x
Type: System..::.Int32
A scalar.

Return Value

A new subset containing the sum.

Remarks

y[i] = s[i] + x

See Also