|
Unity Scopes API
|
The Sample class models the interface to a sample of raw observations and their statistical properties. More...
#include <unity/scopes/testing/Statistics.h>

Public Types | |
| typedef std::size_t | SizeType |
| typedef double | ValueType |
| typedef std::function< void(ValueType)> | Enumerator |
Public Member Functions | |
| virtual SizeType | get_size () const =0 |
| virtual ValueType | get_mean () const =0 |
| virtual ValueType | get_variance () const =0 |
| virtual void | enumerate (const Enumerator &enumerator) const =0 |
The Sample class models the interface to a sample of raw observations and their statistical properties.
| typedef std::function<void(ValueType)> unity::scopes::testing::Sample::Enumerator |
Function signature for enumerating all raw observations.
| typedef std::size_t unity::scopes::testing::Sample::SizeType |
Unsigned type describing the size of the sample.
| typedef double unity::scopes::testing::Sample::ValueType |
Floating point type describing an individual observation.
|
pure virtual |
Enumerate all raw observations from the sample.
Implemented in unity::scopes::testing::Benchmark::Result::Timing.
|
pure virtual |
Query the empirical mean of the sample.
Implemented in unity::scopes::testing::Benchmark::Result::Timing.
|
pure virtual |
Query the size of the sample.
Implemented in unity::scopes::testing::Benchmark::Result::Timing.
|
pure virtual |
Query the empirical variance of the sample.
Implemented in unity::scopes::testing::Benchmark::Result::Timing.