package io.sigpipe.sing.stat;

public class SummaryStatistics {

    private double min;
    private double max;
    private double mean;
    private double std;
    private double var;

    public SummaryStatistics(RunningStatistics rs) {
        this.min = rs.min();
        this.max = rs.max();
        this.mean = rs.mean();
        this.var = rs.var();
        this.std = rs.std();
    }

    public double min() {
        return this.min;
    }

    public double max() {
        return this.max;
    }

    public double mean() {
        return this.mean;
    }

    public double std() {
        return this.std;
    }

    public double var() {
        return this.var;
    }
}

@@ -58,16 +58,38 @@
 tics %7B%0A%0A
+    private long num;%0A
     priv
@@ -100,24 +100,24 @@
 double min;%0A
-
     private 
@@ -251,24 +251,51 @@
 stics rs) %7B%0A
+        this.num = rs.n();%0A
         this
@@ -396,24 +396,24 @@
 = rs.var();%0A
-
         this
@@ -428,32 +428,90 @@
 s.std();%0A    %7D%0A%0A
+    public double num() %7B%0A        return this.num;%0A    %7D%0A%0A
     public doubl

Maintain number of samples observed