hanaml.IQR {hana.ml.r}R Documentation

The Interquartile Range

Description

hanaml.IQR is a R wrapper for PAL Inter-Quartile Range.

Usage

hanaml.IQR(conn.context, data, key, col = NULL, multiplier = NULL)

Arguments

conn.context

ConnectionContext
Connection to SAP HANA System

data

DataFrame
Dataset used for training the IQR model.

key

character
Name of the ID column in data.

col

character, optional
Name of the feature column for inter-quartile range(IQR) test. Defaults to the 1st non-ID column if not provided.

multiplier

double, optional
The multiplier used in the IQR test. Defaults to 1.5.

Value

list of DataFrame

Examples

## Not run: 
Input DataFrame for clustering:
> data$collect()
     ID  VAL
 1   P1  10
 2   P2  11
 3   P3  10
 4   P4   9
 5   P5  10
 6   P6  24
 7   P7  11
 8   P8  12
 9   P9  10
 10 P10   9
 11 P11   1
 12 P12  11
 13 P13  12
 14 P14  13
 15 P15  12
 Create IQR instance:
 > result <- hanaml.IQR(conn, data, key="ID", multiplier = 1.5)

 Perform fit on the given data:
 >result[[1]]$Collect()
     ID    IS_OUT_OF_RANGE
 1   P1        0
 2   P2        0
 3   P3        0
 4   P4        0
 5   P5        0
 6   P6        1
 7   P7        0
 8   P8        0
 9   P9        0
 10 P10        0
 11 P11        1
 12 P12        0
 13 P13        0
 14 P14        0
 15 P15        0
 
## End(Not run)

[Package hana.ml.r version 1.0.8 Index]