Documentation
¶
Index ¶
- type XY
- func (xy *XY) AddXY(x, y float64)
- func (xy *XY) FilterX(f func(x float64) bool) []int
- func (xy *XY) FilterY(f func(y float64) bool) []int
- func (xy *XY) GetI(x, y float64) int
- func (xy *XY) GetX(i int) (x float64)
- func (xy *XY) GetXY(i int) (x, y float64)
- func (xy *XY) GetY(i int) (y float64)
- func (xy *XY) InsertXY(x, y float64, i int)
- func (xy *XY) Len() int
- func (xy *XY) RemoveXY(i int)
- func (xy *XY) ReplaceXY(x, y float64, i int)
- func (xy *XY) SortI(ascending bool) []int
- func (xy *XY) SortX(ascending bool) []int
- func (xy *XY) SortY(ascending bool) []int
- func (xy *XY) ViewX(index []int) *[]float64
- func (xy *XY) ViewY(index []int) *[]float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type XY ¶
type XY struct {
Error string // Error string -- cleared when new function call is made to XYdata object
// contains filtered or unexported fields
}
xy data
func (*XY) FilterX ¶ added in v0.20.1
Filters all X data with given function and returns the index of filtered values
func (*XY) FilterY ¶ added in v0.20.1
Filters all Y data with given function and returns the index of filtered values
func (*XY) GetI ¶
Finds the index of given X and/or Y value(s). Index is gone through in ascending order and the first match is returned. Use math.NaN() to disable matching.
Click to show internal directories.
Click to hide internal directories.