Missing Value Action Enumeration
Enumerates the possible actions to be taken when a calculation encounters
a missing value.
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
public enum MissingValueAction
Members
Default | 0 | Use the default action, Discard. The value or row containing the missing value is discarded. |
Discard | 0 | This is the default. |
Ignore | 1 | Same as Nothing. No action is taken and the value is ignored. If NaN's are present, Most operations on numerical variables will give NaN as a result. |
Nothing | 1 | Same as Ignore. No action is taken and the value is ignored. If missing values are present, most operations will give a missing value as a result. |
Fail | 2 | When a missing value is encountered, a MissingValueException is thrown. |
ReplaceWithPrevious | 3 | Any missing values are replaced with the value of the previous observation. If the first observation is missing, it is replaced with 0. |
ReplaceWithNext | 4 | Any missing values are replaced with the value of the next observation. If the last observation is missing, it is replaced with 0. |
ReplaceWithValue | 5 | Any missing values are replaced with the user-specified value. |