stats

package
v4.5.2003+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MAPE

func MAPE(measurementDataSet map[int64]*MeasurementData,
	granularity int64) (float64, error)

func NewMeasurementDataSet

func NewMeasurementDataSet(metricSamples []*datahub_common.Sample,
	predictSamples []*datahub_predictions.Sample, granularity int64) map[int64]*MeasurementData

func NewMeasurementDataSetV2

func NewMeasurementDataSetV2(metricSamples []*datahub_common.Row, metricCols []string,
	predictSamples []*datahub_common.Row, predictCols []string, unit *config.Unit, granularity int64) map[int64]*MeasurementData

func RMSE added in v0.9.166

func RMSE(measurementDataSet map[int64]*MeasurementData,
	metricType datahub_common.MetricType, granularity int64) (float64, error)

Types

type MeasurementData

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

func (MeasurementData) GetMetricData

func (mData MeasurementData) GetMetricData() float64

func (MeasurementData) GetPredictData

func (mData MeasurementData) GetPredictData() float64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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