Returns a Filter that selects all observations between the corresponding observations in two other variables.

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

Syntax

Visual Basic (Declaration)
Public Function Between ( _
	lowerBound As CategoricalVariable, _
	upperBound As CategoricalVariable _
) As Filter
C#
public Filter Between (
	CategoricalVariable lowerBound,
	CategoricalVariable upperBound
)
C++
public:
Filter^ Between (
	CategoricalVariable^ lowerBound, 
	CategoricalVariable^ upperBound
)

Parameters

lowerBound (Extreme.Statistics.CategoricalVariable)
A CategoricalVariable of the same length as the current variable.
upperBound (Extreme.Statistics.CategoricalVariable)
A CategoricalVariable of the same length as the current variable.

Return Value

A Filter that selects all observations that lie between the corresponding observations of lowerBound and upperBound.

Exceptions

ExceptionCondition
DimensionMismatchException The length of lowerBound is not equal to the length of this instance.

-or-

The length of upperBound is not equal to the length of this instance.

ArgumentNullExceptionlowerBound is nullNothingnullptr.

-or-

upperBound is nullNothingnullptr.

InvalidOperationException The variable's Scale is not ordered.