dataframe

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dataframe

type Dataframe struct {
	Units  string     `json:"units"`
	Values vector.Vec `json:"values"`
	Labels []string   `json:"labels"`
}

func MakeDataframe

func MakeDataframe(units string, l int, source func(index int) (string, float64)) Dataframe

func NewFromTicks

func NewFromTicks(units string, from, to time.Time, step time.Duration, values vector.Vec) Dataframe

func (Dataframe) Get

func (dataframe Dataframe) Get(index int) (label string, value float64)

func (Dataframe) Len

func (dataframe Dataframe) Len() int

func (Dataframe) String

func (dataframe Dataframe) String() string

func (Dataframe) WithUnits

func (dataframe Dataframe) WithUnits(units string) Dataframe

Jump to

Keyboard shortcuts

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