hmu_pca | R Documentation |
Multivariate anomaly detector using PCA doi:10.1016/0098-3004(93)90090-R
hmu_pca()
hmu_pca
object
library(daltoolbox)
#loading the example database
data(examples_harbinger)
#Using the time series 9
dataset <- examples_harbinger$multidimensional
head(dataset)
# establishing hmu_pca method
model <- hmu_pca()
# fitting the model using the two columns of the dataset
model <- fit(model, dataset[,1:2])
# making detections
detection <- detect(model, dataset[,1:2])
# filtering detected events
print(detection[(detection$event),])
# evaluating the detections
evaluation <- evaluate(model, detection$event, dataset$event)
print(evaluation$confMatrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.