qualityStatistics {EventDetectR} | R Documentation |
qualityStatistics
Description
Wrapper function for caret::confusionMatrix. qualityStatistics calculates statistics for judging the quality of the eventDetection based on the fitted edModel and a reference dataset
Usage
qualityStatistics(edObject, reference)
Arguments
edObject |
The eventdetection object you obtain by running 'detectEvents' |
reference |
true/false vector, reference vector based on labeled data: which datapoints are real events. |
Value
list, Confusion Matrix and Statistics
Examples
train <- geccoIC2018Train[15000:17000,]
edObject <- detectEvents(train[,-c(1,11)],windowSize = 1000,
nIterationsRefit = 500,verbosityLevel = 2,
postProcessorControl = list(nStandardDeviationseventThreshold = 3))
qualityStatistics(edObject, train$EVENT)
[Package EventDetectR version 0.3.5 Index]