Gets an aggregator that returns the observation at the specified position.

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Shared Function Nth ( _
	n As Integer _
) As Aggregator
C#
public static Aggregator Nth (
	int n
)
C++
public:
static Aggregator^ Nth (
	int n
)

Parameters

n (System.Int32)
The zero-based position of the observation.

Return Value

An Aggregator that returns the nth observation in each interval.

Remarks

If an interval contains less than n observations, MissingValue is returned.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionn is less than zero.