timeseries

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvConfig

type CsvConfig struct {
	Comma     rune
	TimeStamp string
	Maps      map[string]func(string) (interface{}, error)
}

func NewCsvConfig

func NewCsvConfig(timestamp string) *CsvConfig

type TimeArray

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

func FromCsv

func FromCsv(in string, config *CsvConfig) (res *TimeArray, err error)

func FromCsvFile

func FromCsvFile(filename string, config *CsvConfig) (res *TimeArray, err error)

func FromData

func FromData(timestamp []interface{}, values map[string][]interface{}) *TimeArray

func (*TimeArray) AsSlice

func (ta *TimeArray) AsSlice(name string) []interface{}

func (*TimeArray) ChangeTimeStamp added in v0.0.4

func (ta *TimeArray) ChangeTimeStamp(oldTs, newTs interface{})

func (*TimeArray) ColNames

func (ta *TimeArray) ColNames() []string

func (*TimeArray) RemoveIndices added in v0.0.4

func (ta *TimeArray) RemoveIndices(indices []int) *TimeArray

func (*TimeArray) Rename

func (ta *TimeArray) Rename(oldName, newName string) bool

func (*TimeArray) TimeStamp

func (ta *TimeArray) TimeStamp() []interface{}

func (*TimeArray) Values

func (ta *TimeArray) Values(colnames ...string) *TimeArray

Jump to

Keyboard shortcuts

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