diff options
Diffstat (limited to 'pkg/data/histogram.go')
-rw-r--r-- | pkg/data/histogram.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/data/histogram.go b/pkg/data/histogram.go index 06e5d95..e16d000 100644 --- a/pkg/data/histogram.go +++ b/pkg/data/histogram.go @@ -64,7 +64,7 @@ func NewBins(points []float64) *Bins { } func (b *Bins) left(i int) float64 { - return (b.max - b.min) / float64(b.Number) * float64(i) + return b.min + ((b.max - b.min) / float64(b.Number) * float64(i)) } func (b *Bins) right(i int) float64 { |