]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/SGSmplstat.hxx
Boolean uniforms are now updatable by properties
[simgear.git] / simgear / structure / SGSmplstat.hxx
index d815f400a0101726985f132200ffb5d83606fd13..d8e29b3f3719b9c928a5ebed509b6e1ccf5cfaa1 100644 (file)
@@ -30,6 +30,7 @@ protected:
   double x;
   double x2;
   double minValue, maxValue;
+  double allTimeTotal;
 
 public:  SampleStatistic ();
   inline virtual ~ SampleStatistic ();
@@ -42,6 +43,7 @@ public:  SampleStatistic ();
   double var () const;
   double min () const;
   double max () const;
+  double total () const;
   double confidence (int p_percentage) const;
   double confidence (double p_value) const;
 
@@ -58,6 +60,7 @@ public:  SampleStatistic ();
 
 inline SampleStatistic::SampleStatistic ()
 {
+  allTimeTotal = 0;
   reset ();
 }
 inline int SampleStatistic::samples () const
@@ -72,6 +75,10 @@ inline double SampleStatistic::max () const
 {
   return (maxValue);
 }
+inline double SampleStatistic::total () const
+{
+  return (allTimeTotal);
+}
 
 inline SampleStatistic::~SampleStatistic ()
 {