VectorExtensions.ExtrapolatedChange Method

Returns a vector whose observations are the extrapolated change of the observations over the specified lag.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static Vector<double> ExtrapolatedChange(
	this Vector<double> vector,
	int lag,
	double length
)

Parameters

vector  Vector<Double>
The vector to transform.
lag  Int32
An integer larger than zero that specifies the distance between the current observation and the reference observation.
length  Double
The number of periods over which to extrapolate the growth rate.

Return Value

Vector<Double>
A vector.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<Double>. 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).

Remarks

The growth rate is the percentage change between quantities over time. The extrapolated growth rate states the growth rate extrapolated over the specified number of periods.

The new vector gets the name extChange<n>(<name>), where <name> is the name of the original vector and <n> . is the length.

Exceptions

ArgumentOutOfRangeException

lag is less than or equal to zero.

See Also