HSC_PC_Attribute {SeqDetect}R Documentation

Attribute pre-classifier

Description

Extends the HSC_PC abstract class.

Usage

HSC_PC_Attribute(field)

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

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)

[Package SeqDetect version 1.0.7 Index]