qualityStatistics: qualityStatistics

Description Usage Arguments Value Examples

View source: R/detectionQuality.R

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

1
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

1
2
3
4
5
train <- geccoIC2018Train[15000:17000,]
edObject <- detectEvents(train[,-c(1,11)],windowSize = 1000,
                nIterationsRefit = 500,verbosityLevel = 2,
                postProcessorControl = list(nStandardDeviationseventThreshold = 3))
qualityStatistics(edObject, train$EVENT)

EventDetectR documentation built on Jan. 13, 2021, 9:02 a.m.