Dynamical System Framework
Loading...
Searching...
No Matches
dsf::Measurement< T > Struct Template Reference

The Measurement struct represents the mean of a quantity and its standard deviation. More...

#include <Measurement.hpp>

Public Member Functions

 Measurement (T mean, T std, std::size_t n)
template<std::ranges::input_range TRange>
 Measurement (TRange &&data)
 Build the measurement from any input range (container, span or view) in a single pass, so lazy views such as std::views::filter can be used directly.

Public Attributes

T mean = static_cast<T>(0)
T std = static_cast<T>(0)
std::size_t n = 0
bool is_valid = false

Detailed Description

template<typename T>
struct dsf::Measurement< T >

The Measurement struct represents the mean of a quantity and its standard deviation.

Template Parameters
TThe type of the quantity
Parameters
meanThe mean of the sample
stdThe standard deviation of the sample
nThe number of samples
is_validTrue if the measurement is valid, false otherwise (i.e. checks if the sample is not empty)

The documentation for this struct was generated from the following file:
  • src/dsf/utility/Measurement.hpp