Learn R Programming

EventDetectR (version 0.3.5)

qualityStatistics: 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

Run this code
# NOT RUN {
train <- geccoIC2018Train[15000:17000,]
edObject <- detectEvents(train[,-c(1,11)],windowSize = 1000,
                nIterationsRefit = 500,verbosityLevel = 2,
                postProcessorControl = list(nStandardDeviationseventThreshold = 3))
qualityStatistics(edObject, train$EVENT)
# }

Run the code above in your browser using DataLab