Defines the first statistical moment type.
More...
#include <riskfactor_adjustment_types.h>
Defines the first statistical moment type.
◆ append()
void hgps::FirstMoment::append |
( |
double |
value | ) |
|
|
inlinenoexcept |
Appends a value to the moment.
- Parameters
-
◆ clear()
void hgps::FirstMoment::clear |
( |
| ) |
|
|
inlinenoexcept |
◆ count()
int hgps::FirstMoment::count |
( |
| ) |
const |
|
inlinenoexcept |
Gets the number of values added to the moment.
- Returns
- Number of values
◆ empty()
bool hgps::FirstMoment::empty |
( |
| ) |
const |
|
inlinenoexcept |
Determine whether the moment is empty.
- Returns
- true if the moment is empty; otherwise, false.
◆ mean()
double hgps::FirstMoment::mean |
( |
| ) |
const |
|
inlinenoexcept |
Gets the values mean.
- Returns
- Mean value
◆ operator<=>()
auto hgps::FirstMoment::operator<=> |
( |
const FirstMoment & |
other | ) |
const |
|
default |
Compare FirstMoment instances.
- Parameters
-
other | The other instance to compare |
- Returns
- The comparison result
◆ sum()
double hgps::FirstMoment::sum |
( |
| ) |
const |
|
inlinenoexcept |
Gets the values sum.
- Returns
- Sum value
The documentation for this struct was generated from the following file: