void stats(double[] v) {

        if (v == null) {
            numLabel.setText(" ");
        } else {
            double min = Statistics.min(v);
            double max = Statistics.max(v);
            double mean = Statistics.mean(v);
            double range = Statistics.range(v);
            double median = Statistics.median(v);
            double sum = Statistics.sum(v);
//            double dev = Stats.stddev(v);
//            double var = Stats.variance(v);
            numLabel.setText("#" + v.length + "   Sum[" + fmt.format(sum) + "] Min[" + fmt.format(min) + "]  Max[" + fmt.format(max) + "]  Mean[" + fmt.format(mean) + "]  Range[" +
                    fmt.format(range) + "]  Median[" + fmt.format(median) + "]");
            //Std[" + dev + "]  Var[" + var + "]");
        }
    }