Vector<T>.ReplaceMissingValues Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

ReplaceMissingValues(T) Replaces all missing values in the vector with the specified value.
ReplaceMissingValues(Vector<T>) Replaces all missing values in the vector with the corresponding element in another vector.
ReplaceMissingValues(Direction, Int32) Replaces all missing values in a vector with the specified value.

ReplaceMissingValues(T)

Replaces all missing values in the vector with the specified value.
C#
public Vector<T> ReplaceMissingValues(
	T value
)

Parameters

value  T
The replacement value.

Return Value

Vector<T>
A new vector with the missing values removed.

ReplaceMissingValues(Vector<T>)

Replaces all missing values in the vector with the corresponding element in another vector.
C#
public Vector<T> ReplaceMissingValues(
	Vector<T> values
)

Parameters

values  Vector<T>
The vector of replacement values.

Return Value

Vector<T>
A new vector with the missing values removed.

ReplaceMissingValues(Direction, Int32)

Replaces all missing values in a vector with the specified value.
C#
public Vector<T> ReplaceMissingValues(
	Direction fillDirection,
	int limit = 1073741824
)

Parameters

fillDirection  Direction
Specifies whether missing values should be replaced by the previous (Forward) or next (Backward) non-missing values.
limit  Int32  (Optional)
The maximum number of successive missing values that may be filled.

Return Value

Vector<T>
The result.

See Also