MCPcopy Index your code
hub / github.com/gonum/plot / NewHist

Function NewHist

plotter/histogram.go:70–72  ·  view source on GitHub ↗

NewHist returns a new histogram, as in NewHistogram, except that it accepts a Valuer instead of an XYer.

(vs Valuer, n int)

Source from the content-addressed store, hash-verified

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

Callers 3

TestSingletonHistogramFunction · 0.92
ExampleHistogramFunction · 0.92

Calls 1

NewHistogramFunction · 0.85

Tested by 3

TestSingletonHistogramFunction · 0.74
ExampleHistogramFunction · 0.74