Documentation ¶
Overview ¶
Package vector implements vector types for plotting and statistics.
Index ¶
- func Abs(x float32) float32
- func Max(a, b float32) float32
- func Min(a, b float32) float32
- func Nicenum(r32 float32, round bool) float32
- type Buffer
- type RunningStat
- type Vector
- func (v *Vector) BinWidth() float32
- func (v *Vector) Clear(reset bool) *Vector
- func (v *Vector) DataRange() (xmin, ymin, xmax, ymax float32)
- func (v *Vector) Last() float32
- func (v *Vector) Len() int
- func (v *Vector) Push(val, err float32)
- func (v *Vector) Set(xmin, xstep float32, values []float32)
- func (v *Vector) SetWidth(w float32) *Vector
- func (v *Vector) XY(i int) (x, y float32)
- func (v *Vector) XYErr(i int) (x, y, yerr float32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer type is a fixed size circular buffer.
type RunningStat ¶
type RunningStat struct {
Count, Mean float64
Var, StdDev float64
// contains filtered or unexported fields
}
Running mean and stddev as per http://www.johndcook.com/blog/standard_deviation/
func (*RunningStat) Clear ¶
func (s *RunningStat) Clear()
func (*RunningStat) Push ¶
func (s *RunningStat) Push(x32 float32)
func (*RunningStat) String ¶
func (s *RunningStat) String() string
type Vector ¶
Vector holds a slice of float32 values and errors. It implements the qml.XYer interface
Click to show internal directories.
Click to hide internal directories.