Returns a vector that represents an index value relative to
the specified base value.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Vector<double> ReferenceIndex(
this Vector<double> vector,
int baseIndex,
double indexBaseValue
)
<ExtensionAttribute>
Public Shared Function ReferenceIndex (
vector As Vector(Of Double),
baseIndex As Integer,
indexBaseValue As Double
) As Vector(Of Double)
public:
[ExtensionAttribute]
static Vector<double>^ ReferenceIndex(
Vector<double>^ vector,
int baseIndex,
double indexBaseValue
)
[<ExtensionAttribute>]
static member ReferenceIndex :
vector : Vector<float> *
baseIndex : int *
indexBaseValue : float -> Vector<float>
Parameters
- vector
- Type: Extreme.MathematicsVectorDouble
The vector to transform. - baseIndex
- Type: SystemInt32
The zero-based index of the observation that is to be used as the reference
value. - indexBaseValue
- Type: SystemDouble
A real number that specifies the value of the index at the base value.
Return Value
Type:
VectorDoubleA vector.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
VectorDouble. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exception | Condition |
---|
ArgumentOutOfRangeException | baseIndex is less than zero or greater than or equal to the number of observations of the vector.
|
Reference