fluss_score: FLUSS - Prediction score calculation

Description Usage Arguments Value References See Also Examples

View source: R/fluss.R

Description

FLUSS - Prediction score calculation

Usage

1
fluss_score(gtruth, extracted, data_size)

Arguments

gtruth

an int or vector of int with the ground truth index of segments.

extracted

an int or vector of int with the extracted indexes from fluss_extract().

data_size

an int. Size of original input data.

Value

Returns the score of predicted semantic transitions compared with the ground truth. Zero is the best, One is the worst.

References

Website: https://sites.google.com/site/onlinesemanticsegmentation/

Website: http://www.cs.ucr.edu/~eamonn/MatrixProfile.html

See Also

Other Semantic Segmentations: floss_cac(), floss_extract(), floss(), fluss_cac(), fluss_extract(), fluss()

Examples

1
2
3
4
5
6
7
data <- mp_fluss_data$tilt_abp$data[1:1000]
w <- 10
truth <- c(945, 875)
mp <- tsmp(data, window_size = w, verbose = 0)
mp <- fluss_cac(mp)
mp <- fluss_extract(mp, 2)
score <- fluss_score(truth, mp$fluss, length(data))

franzbischoff/tsmp documentation built on March 9, 2020, 6:01 a.m.