package io.sigpipe.sing.stat;

public class SummaryStatistics {

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

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

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

    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;
    }
}

@@ -784,11 +784,442 @@
 r;%0A    %7D
+%0A%0A    @Override%0A    public String toString() %7B%0A        String str = %22%22;%0A        str += %22Number of Samples: %22 + num + System.lineSeparator();%0A        str += %22Mean: %22 + mean + System.lineSeparator();%0A        str += %22Variance: %22 + var() + System.lineSeparator();%0A        str += %22Std Dev: %22 + std() + System.lineSeparator();%0A        str += %22Min: %22 + min + System.lineSeparator();%0A        str += %22Max: %22 + max;%0A        return str;%0A    %7D
 %0A%7D%0A

Add toString() method