kstats is published to Maven Central under org.oremif. The current version is 0.5.0.
Gradle KTS Setup
BOM (recommended)
Single module
KMP commonMain
The BOM keeps every module aligned to the same version. List only the modules the project needs. dependencies {
implementation ( platform ( "org.oremif:kstats-bom:0.5.0" ))
implementation ( "org.oremif:kstats-core" )
implementation ( "org.oremif:kstats-distributions" )
implementation ( "org.oremif:kstats-hypothesis" )
implementation ( "org.oremif:kstats-correlation" )
implementation ( "org.oremif:kstats-sampling" )
}
For projects that need only one module, specify the version directly. dependencies {
implementation ( "org.oremif:kstats-core:0.5.0" )
}
In a Kotlin Multiplatform project, declare dependencies inside commonMain. kotlin {
sourceSets {
commonMain. dependencies {
implementation (project.dependencies. platform ( "org.oremif:kstats-bom:0.5.0" ))
implementation ( "org.oremif:kstats-core" )
implementation ( "org.oremif:kstats-distributions" )
}
}
}
Module Map
Module Covers Depends on kstats-coreDescriptive statistics, math utilities, validation, exceptions — kstats-distributions18 continuous + 10 discrete probability distributions kstats-corekstats-hypothesisParametric, non-parametric, normality, and categorical tests kstats-distributionskstats-correlationCorrelation coefficients, matrices, simple linear regression kstats-distributionskstats-samplingRanking, normalization, binning, bootstrap, weighted sampling kstats-core
Start with kstats-core for descriptive summaries. Add kstats-distributions when probability models are needed, and kstats-hypothesis or kstats-correlation when the analysis moves into inference. Use the BOM as soon as the project depends on more than one module.
Next Steps
Quick Start Run the first analysis with examples across all modules.
Supported Targets See the full list of Kotlin Multiplatform targets.