timeseries

package
v0.0.0-...-72f2d43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data []float64

func (Data) Copy

func (d Data) Copy() Data

func (Data) Max

func (d Data) Max() float64

func (Data) Mean

func (d Data) Mean() float64

func (Data) Median

func (d Data) Median() float64

func (Data) Min

func (d Data) Min() float64

func (Data) Quantile

func (d Data) Quantile(phi float64) float64

func (Data) Quantiles

func (d Data) Quantiles(phis ...float64) []float64

type Instance

type Instance struct {
	// contains filtered or unexported fields
}

func (*Instance) AddAll

func (ts *Instance) AddAll(o *Instance)

func (*Instance) AddObservation

func (ts *Instance) AddObservation(val float64, t time.Time)

func (*Instance) Data

func (ts *Instance) Data() Data

func (*Instance) Series

func (ts *Instance) Series() (Data, []time.Time)

func (*Instance) SeriesAsDurationSinceEpoch

func (ts *Instance) SeriesAsDurationSinceEpoch(epoch time.Time) (Data, []time.Duration)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL