Documentation ¶
Overview ¶
Package goanomaly implements an anomaly detection library in golang, via Gaussian distribution
See https://github.com/sec51/goanomaly#readme for more information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnomalyDetection ¶
type AnomalyDetection struct {
// contains filtered or unexported fields
}
func NewAnomalyDetection ¶
func NewAnomalyDetection(data ...big.Float) *AnomalyDetection
Creates an anomaly detection object with a one dimension dataset
func (*AnomalyDetection) ClearDataSet ¶
func (ad *AnomalyDetection) ClearDataSet()
ClearDataSet reset the dataSet to nil to release resources
func (*AnomalyDetection) EventIsAnomalous ¶
func (ad *AnomalyDetection) EventIsAnomalous(eventX big.Float, threshold *big.Float) (bool, float64)
Verifies whether a specific event X is anomalous or not
func (*AnomalyDetection) EventXIsAnomalous ¶
Verifies whether a specific event X is anomalous or not This method calculates the probability with probability density formula TODO: CREATE THE SQRT and EXP methods for bignum
func (*AnomalyDetection) ExpandDataSet ¶
func (ad *AnomalyDetection) ExpandDataSet(data ...big.Float)
type AnomalyDetectionVector ¶
type AnomalyDetectionVector []*AnomalyDetection
func NewAnomalyDetectionVector ¶
func NewAnomalyDetectionVector(vector ...[]big.Float) AnomalyDetectionVector
Creates an anomaly detection object with multi dimension dataset (multivariate)
func (AnomalyDetectionVector) EventIsAnomalous ¶
Click to show internal directories.
Click to hide internal directories.