| hanaml.IQR {hana.ml.r} | R Documentation |
hanaml.IQR is a R wrapper for PAL Inter-Quartile Range.
hanaml.IQR(conn.context, data, key, col = NULL, multiplier = NULL)
conn.context |
|
data |
|
key |
|
col |
|
multiplier |
|
list of DataFrame
DataFrame
Test results, structured as follows:
- ID column, with same name and type as data 's ID column.
- IS_OUT_OF_RANGE, type INTEGER, containing the test results from
the IQR test that determine whether each data sample is in the
range or not: 0 indicates a value is in the range and 1 indicates a value is out of range.
DataFrame
including Upper-bound and Lower-bound from the IQR test, structured
as follows:
- STAT_NAME, type NVARCHAR(256), statistics name.
- STAT_VALUE, type DOUBLE, statistics value.
## 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)