metric

package
v0.0.0-...-66ed2bb Latest Latest
Warning

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

Go to latest
Published: May 5, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadMetricFromYahooCsv

func ReadMetricFromYahooCsv(fileName string) *[]Metric

ReadMetricFromYahooCsv will parse a csv file that has been exported from http://finance.yahoo.com/ and convert it to a Metric. Currently just imports the adjustedClosingPrice in the metric.

Types

type Metric

type Metric struct {
	Time  time.Time
	Value float64
}

type MetricArray

type MetricArray []Metric

func (MetricArray) Len

func (m MetricArray) Len() int

func (MetricArray) Less

func (m MetricArray) Less(i, j int) bool

func (MetricArray) Swap

func (m MetricArray) Swap(i, j int)

Jump to

Keyboard shortcuts

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