iplot

package
v0.0.0-...-693ff27 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GridXYZ

func GridXYZ(x, y Range, f func(x, y float64) float64) plotter.GridXYZ

GridXYZ returns a plot.GridXYZ where each value is obtained by calling the given function.

Types

type Range

type Range struct {
	From, To float64
	Step     float64
}

A Range represents a range of values with steps.

func NewRange

func NewRange(from, to float64, steps int) Range

func (Range) Map

func (r Range) Map(n int) float64

Map returns the value of the nth step between From and To.

func (Range) Steps

func (r Range) Steps() int

Steps returns how many total steps there are in between From and To.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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