Documentation
¶
Index ¶
- func Avg(data []float64) float64
- func ChangeDimension(sourceMatrix map[string][]int64, oldStats models.TSStats, ...) map[string][]int64
- func ClosestDiscretize(value float64, maxstate int, min float64, max float64) models.State
- func ComputeProbabilities(statematrix map[string][]int64, maxCount float64) map[string]models.TXStep
- func HistoryStateAsString(previousState []models.State) string
- func IsOutlier(value float64, avg float64, stddev float64, filterStddev int) bool
- func Max(v []float64) float64
- func Min(v []float64) float64
- func ReadProfileFromFile(filepath string) models.TSProfile
- func Round(x float64) float64
- func SimpleDiscretize(value float64, maxstate int, min float64, max float64) models.State
- func Stddev(data []float64) float64
- func Sum(data []int64) int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeDimension ¶
func ChangeDimension(sourceMatrix map[string][]int64, oldStats models.TSStats, newStats models.TSStats, states int) map[string][]int64
ChangeDimension transforms the given sourceMatrix from stats oldStats to the new shape specified in newStats
func ClosestDiscretize ¶
ClosestDiscretize returns a state between min and max with maxstate steps of given value, finding the closest state
func ComputeProbabilities ¶
func HistoryStateAsString ¶
HistoryStateAsString returns the given state history as a string
func ReadProfileFromFile ¶
ReadProfileFromFile returns the TSProfile model read from the given json file
func SimpleDiscretize ¶
SimpleDiscretize returns a state between min and max with maxstate steps of given value finding the smallest state
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.