Function navtk::replace_nan(const Matrix&, const double)
Defined in File transform.hpp
Function Documentation
-
Matrix navtk::replace_nan(const Matrix &arr, const double replacement_value)
Return an array with
replacement_valuesubstituted in for NaN entries.- Parameters
arr – The input array that may have NaN entries.
replacement_value – The value to replace the NaN entry.
- Returns
arrwith NaN values replaced withreplacement_value.