53 template<
typename dtype>
65 for (
auto value : inArray)
67 if (std::isnan(value))
83 for (
uint32 row = 0; row < inShape.
rows; ++row)
87 for (
uint32 col = 0; col < inShape.
cols; ++col)
89 if (std::isnan(inArray(row, col)))
94 sum +=
utils::sqr(
static_cast<double>(inArray(row, col)) - meanValue[row]);
97 returnArray(0, row) = std::sqrt(
sum / counter);
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition Error.hpp:37
#define STATIC_ASSERT_FLOAT(dtype)
Definition StaticAsserts.hpp:50
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
self_type transpose() const
Definition NdArrayCore.hpp:4963
const Shape & shape() const noexcept
Definition NdArrayCore.hpp:4591
value_type item() const
Definition NdArrayCore.hpp:3102
A Shape Class for NdArrays.
Definition Core/shape.hpp:41
uint32 rows
Definition Core/shape.hpp:44
uint32 cols
Definition Core/shape.hpp:45
constexpr dtype sqr(dtype inValue) noexcept
Definition sqr.hpp:42
Definition Cartesian.hpp:40
NdArray< double > nanstdev(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition nanstdev.hpp:54
Axis
Enum To describe an axis.
Definition Enums.hpp:36
@ ROW
Definition Enums.hpp:38
@ COL
Definition Enums.hpp:39
@ NONE
Definition Enums.hpp:37
NdArray< dtype > sum(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition sum.hpp:46
NdArray< double > nanmean(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition nanmean.hpp:54
std::uint32_t uint32
Definition Types.hpp:40