Documentation ¶
Index ¶
- type PredictionMode
- type Predictor
- func (predictor *Predictor) Likeliness(currentState map[string]string, steps int) (map[string][]int, error)
- func (predictor *Predictor) SetMode(mode PredictionMode)
- func (predictor *Predictor) SetPeriodPath(periodPath []int, periodPathDepth int)
- func (predictor *Predictor) SetPhase(currentPhase int)
- func (predictor *Predictor) SetState(currentState map[string]string)
- func (predictor *Predictor) Simulate(steps int) ([][]models.TSState, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PredictionMode ¶
type PredictionMode int
PredictionMode defines the mode used for the predictors simulation
const ( // PredictionModeRootTx defines the mode "RootTx", which uses the TSProfile's root transition matrix PredictionModeRootTx PredictionMode = 0 // PredictionModePhases defines the mode "Phases", which uses the TSProfile's phases PredictionModePhases PredictionMode = 1 // PredictionModePeriods defines the mode "Periods", which uses the TSProfile's periods PredictionModePeriods PredictionMode = 2 )
type Predictor ¶
type Predictor struct {
// contains filtered or unexported fields
}
Predictor offers prediction of the TSProfile the predictor is bound to
func NewPredictor ¶
NewPredictor returns a new predictor for the given TSProfile
func (*Predictor) Likeliness ¶
func (predictor *Predictor) Likeliness(currentState map[string]string, steps int) (map[string][]int, error)
Likeliness ...
func (*Predictor) SetMode ¶
func (predictor *Predictor) SetMode(mode PredictionMode)
SetMode defines the given PredictionMode for the next simulation
func (*Predictor) SetPeriodPath ¶
SetPeriodPath defines the current path in the period tree
Click to show internal directories.
Click to hide internal directories.