| eikmeans_test | R Documentation |
Assigns the points of a sample to the bins of an
eikmeans() model and compares the counts with those of the training
sample by Pearson's chi-square test.
eikmeans_test(model, sample)
model |
An |
sample |
The sample to test (matrix or data frame with the training features). |
A data frame with the chi-square statistic, the degrees of
freedom (df), the p_value and whether a drift is detected
(drift, p_value < alpha).
set.seed(1)
model <- eikmeans(matrix(stats::rnorm(1000), ncol = 2), n_test = 100,
k = 10, min_points = 20)
eikmeans_test(model, matrix(stats::rnorm(200, 0.5), ncol = 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.