Dev #280

Merged
altavir merged 99 commits from dev into master 2021-04-16 19:45:55 +03:00
3 changed files with 3 additions and 2 deletions
Showing only changes of commit 4abd0bdb6f - Show all commits

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

View File

@ -13,7 +13,7 @@ internal class CommonsDistributionsTest {
fun testNormalDistributionSuspend() = runBlocking { fun testNormalDistributionSuspend() = runBlocking {
val distribution = GaussianSampler(7.0, 2.0) val distribution = GaussianSampler(7.0, 2.0)
val generator = RandomGenerator.default(1) val generator = RandomGenerator.default(1)
val sample = distribution.sample(generator).take(1000).toList().asBuffer() val sample = distribution.sample(generator).take(1000).toList().toDoubleArray().asBuffer()
Assertions.assertEquals(7.0, Mean.double(sample), 0.2) Assertions.assertEquals(7.0, Mean.double(sample), 0.2)
} }

View File

@ -17,6 +17,7 @@ pluginManagement {
id("ru.mipt.npm.gradle.jvm") version toolsVersion id("ru.mipt.npm.gradle.jvm") version toolsVersion
id("ru.mipt.npm.gradle.publish") version toolsVersion id("ru.mipt.npm.gradle.publish") version toolsVersion
kotlin("jvm") version kotlinVersion kotlin("jvm") version kotlinVersion
kotlin("multiplatform") version kotlinVersion
kotlin("plugin.allopen") version kotlinVersion kotlin("plugin.allopen") version kotlinVersion
} }
} }