Versions in this module Expand all Collapse all v0 v0.8.6 Jan 16, 2023 Changes in this version + func DefaultDatetimeParser(date string) (time.Time, error) + type DatetimeParserFn func(date string) (time.Time, error) type Series + func NewWithDatetimeParser(values interface{}, t Type, name string, dtParser DatetimeParserFn) Series v0.8.5 Jan 13, 2023 v0.8.4 Jun 3, 2022 Changes in this version type Series + func (s *Series) AppendSeries(se *Series) + func (s Series) ConcatNoCopy(x Series) Series v0.8.3 May 25, 2022 v0.8.2 May 25, 2022 Changes in this version + const IsNaN + const IsNotNaN + var ErrAllNA = seriesError + var ErrBounds = seriesError + var ErrBoundsVal = func(val interface{}) seriesError + var ErrEmptyInput = seriesError + var ErrNotMeaningfulForString = seriesError + var ErrSize = seriesError + var ErrSizeDiffer = seriesError + func Covariance(data1, data2 []float64) (float64, error) + func CovariancePopulation(data1, data2 []float64) (float64, error) + func GeometricMean(data []float64) float64 + func Mean(data []float64) float64 + func Median(data []float64) float64 + func Outliers(data []float64) []float64 + func ParseDateTime(date string) (time.Time, error) + func ParseDateTimeFormat(date string) (string, error) + func Percentile(data []float64, percent float64) (float64, int, error) + func Percentiles(data []float64, percentiles ...float64) ([]float64, []int, error) + func Quartile(data []float64) []float64 + func SampleVariance(input []float64) float64 + func Stats(data []float64) (count int, min, max, sum, mean float64) + func Sum(data []float64) float64 + func Variance(input []float64) float64 type Element + func FirstNonNan(series Series) (int, Element) + func Max(input Series) (max Element, err error) + func Min(input Series) (min Element, err error) + Time func() (time.Time, error) type Series + OtherInfo interface{} + func NewFromBytes(data []byte) Series + func NewWithOther(values interface{}, t Type, name string, otherInfo interface{}) Series + func Times(values interface{}) Series + func (s *Series) Combine(b Series) Series + func (s Series) Bytes() ([]byte, error) + func (s Series) Covariance(so Series) (float64, error) + func (s Series) CovariancePopulation(so Series) (float64, error) + func (s Series) GeometricMean() float64 + func (s Series) Mean() float64 + func (s Series) Median() float64 + func (s Series) Outliers() []float64 + func (s Series) Percentile(percent float64) (float64, int, error) + func (s Series) Percentiles(percentiles ...float64) ([]float64, []int, error) + func (s Series) Quartile() Series + func (s Series) SampleVariance() float64 + func (s Series) SetValue(indexes Indexes, val interface{}) Series + func (s Series) Slice(start, end int) Series + func (s Series) Stats() (count int, min, max, sum, mean float64) + func (s Series) Sum() float64 + func (s Series) Time() ([]time.Time, error) + func (s Series) Variance() float64 type Type + const Time v0.8.0 Dec 12, 2016 Changes in this version + type Element interface + Addr func() string + Bool func() (bool, error) + Copy func() Element + Eq func(Element) bool + Float func() float64 + Greater func(Element) bool + GreaterEq func(Element) bool + Int func() (int, error) + IsNA func() bool + Less func(Element) bool + LessEq func(Element) bool + Neq func(Element) bool + Set func(interface{}) Element + String func() string + Type func() Type + Val func() ElementValue + type ElementValue interface type Series + func (s Series) IsNaN() []bool + func (s Series) Order(reverse bool) []int v0.7.0 Nov 27, 2016 Changes in this version + const Bool + const Eq + const Float + const Greater + const GreaterEq + const In + const Int + const Less + const LessEq + const Neq + const String + type Comparator string + type Indexes interface + type Series struct + Err error + Name string + func Bools(values interface{}) Series + func Floats(values interface{}) Series + func Ints(values interface{}) Series + func New(values interface{}, t Type, name string) Series + func Strings(values interface{}) Series + func (s *Series) Append(values interface{}) + func (s Series) Addr() []string + func (s Series) Bool() ([]bool, error) + func (s Series) Compare(comparator Comparator, comparando interface{}) Series + func (s Series) Concat(x Series) Series + func (s Series) Copy() Series + func (s Series) Elem(i int) elementInterface + func (s Series) Empty() Series + func (s Series) Float() []float64 + func (s Series) HasNaN() bool + func (s Series) Int() ([]int, error) + func (s Series) Len() int + func (s Series) Records() []string + func (s Series) Set(indexes Indexes, newvalues Series) Series + func (s Series) Str() string + func (s Series) String() string + func (s Series) Subset(indexes Indexes) Series + func (s Series) Type() Type + func (s Series) Val(i int) (interface{}, error) + type Type string