Vector<T>.Replace Missing Values Into Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Replace | Replaces all missing values in a 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 previous or next non-missing value. |
ReplaceMissingValuesInto(T, Vector<T>)
Replaces all missing values in a vector with the specified value.
public Vector<T> ReplaceMissingValuesInto(
T value,
Vector<T>? result
)
Parameters
Return Value
Vector<T>The result.
ReplaceMissingValuesInto(Vector<T>, Vector<T>)
Replaces all missing values in the vector with the
corresponding element in another vector.
public Vector<T> ReplaceMissingValuesInto(
Vector<T> values,
Vector<T>? result
)
Parameters
- values Vector<T>
- The vector of replacement values.
- result Vector<T>
- The vector that is to hold the result. May be null.
Return Value
Vector<T>The result.
ReplaceMissingValuesInto(Direction, Vector<T>, Int32)
Replaces all missing values in a vector with
the previous or next non-missing value.
public Vector<T> ReplaceMissingValuesInto(
Direction fillDirection,
Vector<T>? result,
int limit = 1073741824
)
Parameters
- fillDirection Direction
- Specifies whether missing values should be replaced by the previous (Forward) or next (Backward) non-missing values.
- result Vector<T>
- The vector that is to hold the result. May be null.
- limit Int32 (Optional)
- The maximum number of successive missing values that may be filled.
Return Value
Vector<T>The result.