Versions in this module Expand all Collapse all v0 v0.4.3 Jun 29, 2021 v0.4.2 Jun 29, 2021 Changes in this version + func TxLikeliness(txMatrices []TxMatrix, history [][]TSState, nextState []TSState) float32 + type History struct + CurrentPhase int + HistoricStates []map[string]string + NextState map[string]string + PeriodPath []int + func ReadHistoryFromFile(filepath string) History + type PeriodTree struct + Root PeriodTreeNode + func NewPeriodTree(size []int) PeriodTree + func (periodTree *PeriodTree) GetNode(path []int) *PeriodTreeNode + type PeriodTreeNode struct + Children []PeriodTreeNode + MaxChilds int + MaxCounts int + TxMatrix []TxMatrix + UUID int + func NewPeriodTreeNode(size []int) PeriodTreeNode + func (periodTreeNode *PeriodTreeNode) GetNode(path []int) *PeriodTreeNode + type Phases struct + Phases [][]TxMatrix + Tx TxMatrix + type Settings struct + BufferSize int + FilterStdDevs int + FixBound bool + History int + Name string + OutputCallback func(data TSProfile) + OutputFreq time.Duration + PeriodSize []int + PhaseChangeHistory int64 + PhaseChangeHistoryFadeout bool + PhaseChangeLikeliness float32 + States int + type State struct + Value int64 + type TSBuffer struct + FixedMax float64 + FixedMin float64 + Max float64 + Metric string + Min float64 + RawData []float64 + func NewTSBuffer(metric string) TSBuffer + func (tsbuffer *TSBuffer) Append(value float64) + type TSInput struct + Metrics []TSInputMetric + type TSInputMetric struct + FixedMax float64 + FixedMin float64 + Name string + Value float64 + type TSProfile struct + Name string + PeriodTree PeriodTree + Phases Phases + RootTx []TxMatrix + Settings Settings + func (profile *TSProfile) Likeliness(oldstates [][]TSState, newstate []TSState) float32 + func (profile *TSProfile) LikelinessPhase(currentPhase int, oldstates [][]TSState, newstate []TSState) float32 + type TSState struct + Metric string + State State + Statistics TSStats + type TSStats struct + Avg float64 + Count int64 + Max float64 + Min float64 + Stddev float64 + StddevSum float64 + type TXStep struct + NextStateProbs []int + StepProb int + type TxMatrix struct + Metric string + Stats TSStats + Transitions map[string]TXStep + func (txMatrix *TxMatrix) Diff(txMatrixRemote TxMatrix) float64 + func (txMatrix *TxMatrix) Likeliness(from []TSState, to TSState) float32 + func (txMatrix *TxMatrix) Merge(txMatrixRemote TxMatrix)