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

Method X

plotter/volcano_example_test.go:24–30  ·  view source on GitHub ↗
(c int)

Source from the content-addressed store, hash-verified

22func (g deciGrid) Dims() (c, r int) { r, c = g.Matrix.Dims(); return c, r }
23func (g deciGrid) Z(c, r int) float64 { return g.Matrix.At(r, c) }
24func (g deciGrid) X(c int) float64 {
25 _, n := g.Matrix.Dims()
26 if c < 0 || c >= n {
27 panic("index out of range")
28 }
29 return 10 * float64(c)
30}
31func (g deciGrid) Y(r int) float64 {
32 m, _ := g.Matrix.Dims()
33 if r < 0 || r >= m {

Callers

nothing calls this directly

Calls 1

DimsMethod · 0.65

Tested by

no test coverage detected