curve

package
v0.0.0-...-9d211eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Continuous

func Continuous(f func(x float64) float64, dt float64, opts Opts) ([]plot.Line, error)

Continuous samples a continuous function and draws it within the bounding box

func Discrete

func Discrete(xs, ys []float64, opts Opts) ([]plot.Line, error)

Discrete draws a discrete curve represented by its points

func ReadCSV

func ReadCSV(fn string) (xs, ys []float64, err error)

ReadCSV reads a CSV file and parses the first and second column as X, resp. Y coordinates. If a row cannot be parsed, it is skipped.

Types

type Opts

type Opts struct {
	Size   plot.XY
	Center plot.XY
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL