Returns a vector whose observations are the percent change
of the observations over the specified lag.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Vector<double> PercentChange(
this Vector<double> vector,
int lag
)
<ExtensionAttribute>
Public Shared Function PercentChange (
vector As Vector(Of Double),
lag As Integer
) As Vector(Of Double)
public:
[ExtensionAttribute]
static Vector<double>^ PercentChange(
Vector<double>^ vector,
int lag
)
[<ExtensionAttribute>]
static member PercentChange :
vector : Vector<float> *
lag : int -> Vector<float>
Parameters
- vector
- Type: Extreme.MathematicsVectorDouble
The vector to transform. - lag
- Type: SystemInt32
An integer larger than zero that specifies
the distance between the current observation and the reference observation.
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).
The new vector gets the name changePct<n>(<name>), where
<name> is the name of the original vector and <n> .
is the length.
Reference