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

Struct Function

plotter/functions.go:15–25  ·  view source on GitHub ↗

Function implements the Plotter interface, drawing a line for the given function.

Source from the content-addressed store, hash-verified

13// Function implements the Plotter interface,
14// drawing a line for the given function.
15type Function struct {
16 F func(x float64) (y float64)
17
18 // XMin and XMax specify the range
19 // of x values to pass to F.
20 XMin, XMax float64
21
22 Samples int
23
24 draw.LineStyle
25}
26
27// NewFunction returns a Function that plots F using
28// the default line style with 50 samples.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected