Function navtk::replace_nan(const Vector&, const double)
Defined in File transform.hpp
Function Documentation
-
Vector navtk::replace_nan(const Vector &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.