The DEGREE-based simulation methodology
rossetti/KSL on GitHub.KSLCore — the main project with core development functionalityKSLExamples — the textbook examples plus additional illustrative examplesKSLProjectTemplate is a separate Gradle starter project preconfigured to use the KSL as a dependency.KSLCore packages support random number generation, statistics, reporting, and discrete-event modeling via both views.import ksl.utilities.io.StatisticReporter
import ksl.utilities.random.rvariable.NormalRV
import ksl.utilities.statistic.Statistic
fun main() {
// a normal random variable: mean = 20.0, variance = 4.0
val n = NormalRV(20.0, 4.0)
// a Statistic collects and summarizes the observations
val stat = Statistic("Normal Stats")
val data = n.sample(100)
stat.collect(data)
// StatisticReporter pretty-prints statistical summaries
val reporter = StatisticReporter(mutableListOf(stat))
println(reporter.halfWidthSummaryReport())
}NormalRV creates the random variable, Statistic collects the data, and StatisticReporter formats the output.