HSC_PC_Attribute: Attribute pre-classifier

Description Usage Arguments Details Examples

View source: R/HSC_PC_Attribute.R

Description

Extends the HSC_PC abstract class.

Usage

1

Arguments

field

(character) - Field taken as the classification value from the input event stream.

Details

A pre-classifier takes classification from the predefined field in the input event stream and copies these values to the .clazz field. The rest of the input event stream remains unmodified.

Examples

1
2
3
4
5
event_stream <- data.frame(product=c("P45","P134","P45","P134","P134","P45","P134"),
                           sales=c(2,12,18,16,18,24,8),
                           alert=c(NA,NA,NA,NA,NA,"Alert P45","Alert P134"))
pc <- HSC_PC_Attribute("sales")
cons_stream <- classify(pc,event_stream)

SeqDetect documentation built on March 2, 2020, 5:08 p.m.