Documentation
¶
Index ¶
- func AutoLabel(s []float64, m float64) []string
- func Bar(x, y []float64, xlab, ylab []string, title string, info []string) string
- func BarSimple(x, y []float64, xlab, ylab []string, title string, info []string) string
- func ClearScreen()
- func ClearScreenString() string
- func Plot(x, y []float64, xlab, ylab []string, title string, info []string, ...) string
- type Hist
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoLabel ¶
AutoLabel generates automatic labeling based on heuristics-based rounding of the values in s.
func ClearScreenString ¶
func ClearScreenString() string
ClearScreenString returns the control characters to clear terminal.
Types ¶
type Hist ¶
type Hist struct {
Title string
BinMode string
MaxBins int
NrBins int
DataCount int
DataMap map[float64]float64
DataMin float64
DataMax float64
DataMean float64
DataSd float64
Normalize bool
BinStart []float64
BinEnd []float64
Counts []float64
MaxPrecision float64
Precision float64
BinWidth float64
Info string
// contains filtered or unexported fields
}
Hist is a struct holding the parameters and internal state of a histogram object.
func NewHist ¶
NewHist initilizes a new histogram object. If data is not nil the data points are processed and the state is updated.
func (*Hist) DrawSimple ¶
DrawSimple calls BarSimple to draw the hsitogram to the terminal.
func (*Hist) NormCounts ¶
NormCounts returns the normalised counts for each bin.
Click to show internal directories.
Click to hide internal directories.
