Subtracts a scalar from a subset.

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

Syntax

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

Parameters

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

Return Value

A new vector containing the difference.

Remarks

y[i] = s[i] - x

See Also