Documentation ¶
Index ¶
- type Counter
- func (counter *Counter) Count(tsstates []models.TSState)
- func (counter *Counter) GetStats() map[string]models.TSStats
- func (counter *Counter) GetTx() []models.TxMatrix
- func (counter *Counter) Likeliness(next []models.TSState) float32
- func (counter *Counter) Reset()
- func (counter *Counter) ResetCounters()
- func (counter *Counter) ResetStats()
- func (counter *Counter) Totalcounts() int64
- func (counter *Counter) Update(states int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter takes a discretized TSState and counts the transition matrix
func NewCounter ¶
NewCounter initializes and returns a new Counter
func (*Counter) Count ¶
Count takes a discretized Buffer represented as TSStates for each metric and increases the counter
func (*Counter) Likeliness ¶
Likeliness returns the probability [0,1] for the state change from historic previous to next TSState
func (*Counter) ResetCounters ¶
func (counter *Counter) ResetCounters()
ResetCounters clears the counters only
func (*Counter) Totalcounts ¶
Totalcounts returns the summed up total amount of counter values
Click to show internal directories.
Click to hide internal directories.