Versions in this module Expand all Collapse all v0 v0.1.2 Jun 25, 2020 Changes in this version type SequenceStat + Average float64 + Max float64 + Min float64 + Size int + Stdev float64 + Stdevp float64 v0.1.1 Sep 13, 2019 Changes in this version + func FindMax(data SequenceData, from, to int, precision float64) (float64, int) + func FindMin(data SequenceData, from, to int, precision float64) (float64, int) + type Drawdown struct + Begin int + End int + IsRecovered bool + Rate float32 + Recover int + func NewDrawdown() *Drawdown + type Drawdowns struct + Data []*Drawdown + func NewDrawdowns() *Drawdowns + func (d *Drawdowns) Calc(index int, val float64, precision float64) + func (d *Drawdowns) CalcData(data SequenceData, precision float64) + func (d *Drawdowns) CalcEnd() + type SequenceData interface + GetAt func(index int) float64 + Len func() int + type SequenceStat struct + func NewSequenceStat() *SequenceStat + func (stat *SequenceStat) Calc(data SequenceData) + func (stat *SequenceStat) Clear() + type SliceFloat64 struct + Data []float64 + func NewSliceFloat64(num int) *SliceFloat64 + func (slice *SliceFloat64) GetAt(index int) float64 + func (slice *SliceFloat64) Len() int + type SliceInt struct + Data []int + func NewSliceInt(num int) *SliceInt + func (slice *SliceInt) GetAt(index int) int + func (slice *SliceInt) Len() int