37 const Float cntInv = 1._f / cnt;
38 return cntInv * (sumSqr * cntInv -
sqr(sum * cntInv));
#define SPH_ASSERT(x,...)
uint32_t Size
Integral type used to index arrays (by default).
double Float
Precision used withing the code. Use Float instead of float or double where precision is important.
Object representing interval of real values.
constexpr INLINE T sqr(const T &f) noexcept
Return a squared value.
#define INLINE
Macros for conditional compilation based on selected compiler.
#define NAMESPACE_BENCHMARK_BEGIN
#define NAMESPACE_BENCHMARK_END
Object representing a 1D interval of real numbers.
INLINE Float lower() const
Returns lower bound of the interval.
INLINE void extend(const Float &value)
Extends the interval to contain given value.
INLINE Float upper() const
Returns upper bound of the interval.
INLINE Size count() const
INLINE void add(const Float value)
INLINE Float mean() const
INLINE Float variance() const