NewHist returns a new histogram, as in NewHistogram, except that it accepts a Valuer instead of an XYer.
(vs Valuer, n int)
| 68 | // NewHistogram, except that it accepts a Valuer |
| 69 | // instead of an XYer. |
| 70 | func NewHist(vs Valuer, n int) (*Histogram, error) { |
| 71 | return NewHistogram(unitYs{vs}, n) |
| 72 | } |
| 73 | |
| 74 | type unitYs struct { |
| 75 | Valuer |