Vector<T>.Replace Missing Values Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Replace | Replaces all missing values in the vector with the specified value. |
Replace | Replaces all missing values in the vector with the corresponding element in another vector. |
Replace | Replaces all missing values in a vector with the specified value. |
ReplaceMissingValues(T)
Replaces all missing values in the vector with the specified value.
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.
public Vector<T> ReplaceMissingValues(
Vector<T> values
)
Parameters
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.
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.