Skip to contents

Performs two-sample Kolmogorov-Smirnov test on samples.

Super classes

LearnNonparam::PermuTest -> LearnNonparam::TwoSampleTest -> KolmogorovSmirnov

Methods

Public methods

Inherited methods


Method new()

Create a new KolmogorovSmirnov object.

Usage

KolmogorovSmirnov$new(n_permu = 10000)

Arguments

n_permu

an integer indicating number of permutations for the permutation distribution. If set to 0, all permutations will be used.

Returns

A KolmogorovSmirnov object.

Examples

pmt(
    "twosample.ks", n_permu = 0
)$test(Table2.8.1)$print()
#> 
#>  	 Two-Sample Kolmogorov-Smirnov Test 
#> 
#> scoring: none    type: permu(252)    method: default
#> statistic = 0.4, p-value = 0.8730159