Add missing import

This commit is contained in:
Iaroslav Postovalov 2020-12-12 17:13:14 +07:00
parent 5c54640e60
commit e43aad33fe
No known key found for this signature in database
GPG Key ID: 46E15E4A31B3BCD7

View File

@ -3,6 +3,7 @@ package kscience.kmath.stat
import kotlinx.coroutines.runBlocking
import kscience.kmath.chains.Chain
import kscience.kmath.chains.collectWithState
import kscience.kmath.stat.distributions.NormalDistribution
/**
* The state of distribution averager.
@ -21,7 +22,7 @@ private fun Chain<Double>.mean(): Chain<Double> = collectWithState(AveragingChai
fun main() {
val normal = NormalDistribution()
val normal = NormalDistribution(0.0, 2.0)
val chain = normal.sample(RandomGenerator.default).mean()
runBlocking {