24.02.1
|
Measurement value. More...
#include <Measurement.h>
Public Member Functions | |
Value (bool is_floating) | |
Constructor. More... | |
std::string | to_string () const |
Convert the value stored to string. More... | |
Value | operator+ (Value b) const |
Add with another value and return the sum. More... | |
Value | operator- (Value b) const |
Subtract with another value and return the result. More... | |
Value | operator* (Value b) const |
Multiple with another value and return the result. More... | |
Value | operator/ (int b) const |
Return the stored value divided by an integer. More... | |
Value & | operator-= (const Value &b) |
Subtract another value and return the updated stored value. More... | |
bool | operator< (const Value &b) const |
Compare the stored value with another value. More... | |
Static Public Member Functions | |
static double | relative_standard_deviation (const Value &variance, const Value &mean) |
Get the relative standard deviation to a given distribution as a percentage. More... | |
Data Fields | |
union { | |
double floating_point | |
long long int integer | |
} | v |
Stored value. More... | |
bool | is_floating_point |
Is the stored value floating point or integer ? More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Value &value) |
Add the value stored to the stream as a string. More... | |
Measurement value.
Definition at line 44 of file Measurement.h.
|
inline |
Constructor.
[in] | is_floating | Will the value stored be floating point ? |
Definition at line 50 of file Measurement.h.
Multiple with another value and return the result.
[in] | b | Other value |
Definition at line 121 of file Measurement.h.
References arm_compute::test::validation::b, Measurement::Value::is_floating_point, and Measurement::Value::v.
Add with another value and return the sum.
[in] | b | Other value |
Definition at line 83 of file Measurement.h.
References arm_compute::test::validation::b, Measurement::Value::is_floating_point, and Measurement::Value::v.
Subtract with another value and return the result.
[in] | b | Other value |
Definition at line 102 of file Measurement.h.
References arm_compute::test::validation::b, Measurement::Value::is_floating_point, and Measurement::Value::v.
Subtract another value and return the updated stored value.
[in] | b | Other value |
Definition at line 160 of file Measurement.h.
References arm_compute::test::validation::b, Measurement::Value::is_floating_point, and Measurement::Value::v.
|
inline |
Return the stored value divided by an integer.
[in] | b | Integer to divide the value by. |
Definition at line 140 of file Measurement.h.
References arm_compute::test::validation::b, Measurement::Value::floating_point, Measurement::Value::integer, Measurement::Value::is_floating_point, and Measurement::Value::v.
|
inline |
Compare the stored value with another value.
[in] | b | Value to compare against |
Definition at line 179 of file Measurement.h.
References arm_compute::test::validation::b, Measurement::Value::is_floating_point, and Measurement::Value::v.
|
inlinestatic |
Get the relative standard deviation to a given distribution as a percentage.
[in] | variance | The variance of the distribution. |
[in] | mean | The mean of the distribution. |
Definition at line 198 of file Measurement.h.
References Measurement::Value::floating_point, Measurement::Value::integer, Measurement::Value::is_floating_point, and Measurement::Value::v.
Referenced by InstrumentsStats::InstrumentsStats().
|
inline |
Convert the value stored to string.
Definition at line 71 of file Measurement.h.
References arm_compute::test::validation::ss().
|
friend |
double floating_point |
Definition at line 213 of file Measurement.h.
Referenced by Measurement::Value::operator/(), and Measurement::Value::relative_standard_deviation().
long long int integer |
Definition at line 214 of file Measurement.h.
Referenced by Measurement::Value::operator/(), and Measurement::Value::relative_standard_deviation().
bool is_floating_point |
Is the stored value floating point or integer ?
Definition at line 216 of file Measurement.h.
Referenced by InstrumentsStats::InstrumentsStats(), Measurement::Value::operator*(), Measurement::Value::operator+(), Measurement::Value::operator-(), Measurement::Value::operator-=(), Measurement::Value::operator/(), Measurement::Value::operator<(), and Measurement::Value::relative_standard_deviation().
union { ... } v |