25 int mean(T* array,
unsigned int size, T& result) {
28 for(
unsigned int i = 0; i < size; i++) {
37 int variance(T* array,
unsigned int size, T& result) {
39 int err =
mean(array, size, result);
45 for(
unsigned int i = 0; i < size; i++) {
55 int stdev(T* array,
unsigned int size, T& result) {
57 int err =
variance(array, size, result);
67 int max(T* array,
unsigned int size, T& result) {
74 for(
unsigned int i = 0; i < size; i++) {
85 int min(T* array,
unsigned int size, T& result) {
92 for(
unsigned int i = 0; i < size; i++) {
#define ERROR_DIMENSIONS
Definition clockwerkerrors.h:41
int16 safeSqrt(float input, float &result)
Overloaded functions to perform safe square root.
Definition safemath.cpp:57
int16 safeDivide(float a, float b, float &result)
Overloaded functions to perform safe division.
Definition safemath.cpp:24
Class to propagate CR3BP dynamics in characteristic units.
Definition statistics.hpp:22
int variance(T *array, unsigned int size, T &result)
Definition statistics.hpp:37
int min(T *array, unsigned int size, T &result)
Definition statistics.hpp:85
int stdev(T *array, unsigned int size, T &result)
Definition statistics.hpp:55
int mean(T *array, unsigned int size, T &result)
Definition statistics.hpp:25
const int NO_ERROR
Definition simlicense.cpp:30
int max(T *array, unsigned int size, T &result)
Definition statistics.hpp:67