Returns a vector whose observations are the maximum
of a range of observations of the vector.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Vector<double> MovingMaximum(
this Vector<double> vector,
int length
)
<ExtensionAttribute>
Public Shared Function MovingMaximum (
vector As Vector(Of Double),
length As Integer
) As Vector(Of Double)
public:
[ExtensionAttribute]
static Vector<double>^ MovingMaximum(
Vector<double>^ vector,
int length
)
[<ExtensionAttribute>]
static member MovingMaximum :
vector : Vector<float> *
length : int -> Vector<float>
Parameters
- vector
- Type: Extreme.MathematicsVectorDouble
The vector to transform. - length
- Type: SystemInt32
The number of observations in the range.
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).
If length is equal to 1, this method returns the original vector.
The new vector gets the name max<length>(<name>), where
<name> is the name of the original vector.
Reference