| hanaml.VarianceTest {hana.ml.r} | R Documentation |
Variance Test is a method to identify the outliers of n number of numeric data xi where 0 < i < n+1, using the mean and the standard deviation(sigma) of n number of numeric data.
hanaml.VarianceTest(conn.context,
data,
key,
sigma.num,
thread.ratio = NULL,
data.col = NULL)
conn.context |
|
data |
|
key |
|
sigma.num |
|
thread.ratio |
numeric, optional |
data.col |
character, optional |
result : DataFrame
Sampling results, structured as follows:
- DATA_ID: name as shown in input DataFrame.
- IS_OUT_OF_RANGE: 0 -> in bounds, 1 -> out of bounds.
statistics : DataFrame
Statistic results, structured as follows:
- STAT_NAME: statistic name.
- STAT_VALUE: statistic value.
## Not run:
Input DataFrame data variance test:
> data$Collect()
ID X
1 0 25
2 1 20
3 2 23
4 3 29
5 4 26
...
18 17 23
19 18 25
20 19 103
Do variance test for the input data:
> vt <- hanaml.VarianceTest(conn.context, data, key = "ID", sigma.num = 3.0)
Expected output:
> vt[[2]]$Collect()
ID IS_OUT_OF_RANGE
1 0 0
2 1 0
3 2 0
4 3 0
5 4 0
...
18 17 0
19 18 0
20 19 1
## End(Not run)