Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CDF16Fixed is the shift for 16 bit coders CDF16Fixed = 16 - 3 // CDF16Scale is the scale for 16 bit coder CDF16Scale = 1 << CDF16Fixed // CDF16Rate is the damping factor for 16 bit coder CDF16Rate = 5 // CDF16Size is the size of the cdf CDF16Size = 256 // CDF16Depth is the depth of the context tree CDF16Depth = 2 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Activity ¶
type Activity struct {
// contains filtered or unexported fields
}
Activity is an anomaly detector
type CDF16 ¶
CDF16 is a context based cumulative distributive function model https://fgiesen.wordpress.com/2015/05/26/models-for-adaptive-arithmetic-coding/
type Complexity ¶
Complexity is an entorpy based anomaly detector
func NewComplexity ¶
func NewComplexity(depth int) *Complexity
NewComplexity creates a new entorpy based model
func (*Complexity) Complexity ¶
func (c *Complexity) Complexity(input []byte) (float32, int)
Complexity outputs the complexity
type Context16 ¶
Context16 is a 16 bit context
func (*Context16) AddContext ¶
AddContext adds a symbol to the context
Click to show internal directories.
Click to hide internal directories.