diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-03-09 19:08:21 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-03-09 19:08:21 -0500 |
| commit | a2245a9a1653dc25e899ea8b090d2c6be48b00a3 (patch) | |
| tree | 68d8d316c7c734f71ff46d9c8c227caa72af58d1 /print.go | |
| parent | 7f208a0c1ec60f97e4bdd81aea0490cf247c6020 (diff) | |
| download | stats-a2245a9a1653dc25e899ea8b090d2c6be48b00a3.tar.gz stats-a2245a9a1653dc25e899ea8b090d2c6be48b00a3.tar.xz | |
Add min and max
Diffstat (limited to 'print.go')
| -rw-r--r-- | print.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -7,12 +7,14 @@ import ( // Prints each calculated statistic on a line with one tab preceding it func (s *Stats) PrettyStats() string { return fmt.Sprintf(` + Min: %.2f + Max: %.2f Mean: %.2f Variance: %.2f Standard Deviation: %.2f Skewness: %.2f Kurtosis: %.2f -`, s.Mean(), s.Variance(), s.StandardDeviation(), s.Skewness(), s.Kurtosis()) +`, s.Min, s.Max, s.Mean(), s.Variance(), s.StandardDeviation(), s.Skewness(), s.Kurtosis()) } // Returns a string containing all of the data within the struct |
