data

package
v0.0.0-...-efdb40b Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comparator

type Comparator interface {
	Compare(dataset DataReaderWithArgs) (float64, error)
}

type DataFromFile

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

func NewSeriesFromFile

func NewSeriesFromFile(fileName string, key string) DataFromFile

func (DataFromFile) Read

func (series DataFromFile) Read() []float64

type DataReader

type DataReader interface {
	Read() []float64
}

type DataReaderWithArgs

type DataReaderWithArgs interface {
	Read() []float64
	ReadArgs() []float64
	ReadAt([]float64) []float64
}

type Pair

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

func NewPair

func NewPair(data1 DataReader, data2 DataReader) Pair

func (Pair) Compare

func (data Pair) Compare() (float64, error)

func (Pair) GetFields

func (pair Pair) GetFields() []DataReader

type PairWithArgs

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

func NewPairWithArgs

func NewPairWithArgs(data1 DataReaderWithArgs, data2 DataReaderWithArgs, commonArgs DataReader) PairWithArgs

func (PairWithArgs) Compare

func (data PairWithArgs) Compare(datas2 DataReaderWithArgs) (float64, error)

Compare return the RMS error of two series, synced to the largest common overlapping range. If an commonArgs serie is provided, this is used to sync the series TODO: Extend Compare to return an error as well...

func (PairWithArgs) GetFields

func (pair PairWithArgs) GetFields() []DataReaderWithArgs

type Serie

type Serie []float64

func NewSeries

func NewSeries(data []float64) Serie

func (Serie) Read

func (series Serie) Read() []float64

type SerieWithArgs

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

func NewSeriesWithArgs

func NewSeriesWithArgs(arguments DataReader, functionValues DataReader) SerieWithArgs

func (SerieWithArgs) Read

func (series SerieWithArgs) Read() []float64

func (SerieWithArgs) ReadArgs

func (series SerieWithArgs) ReadArgs() []float64

func (SerieWithArgs) ReadAt

func (series SerieWithArgs) ReadAt(xs []float64) []float64

type WeightedPairs

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

func (WeightedPairs) Compare

func (objFuncs WeightedPairs) Compare() (float64, error)

Jump to

Keyboard shortcuts

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