Function navtk::replace_nan(const Matrix&, const double)

Function Documentation

Matrix navtk::replace_nan(const Matrix &arr, const double replacement_value)

Return an array with replacement_value substituted in for NaN entries.

Parameters
  • arr – The input array that may have NaN entries.

  • replacement_value – The value to replace the NaN entry.

Returns

arr with NaN values replaced with replacement_value.