MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / nextDouble

Method nextDouble

src/main/java/trace/random/RandomCascade.kt:53–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 }
52
53 fun nextDouble(increment: Double): Double {
54 return r.mapIndexed { index, rr -> rr.nextDouble(increment * h[index]) * a[index] }.sum()
55 }
56
57 fun nextGaussian(increment: Double): Double {
58 return r.mapIndexed { index, rr -> rr.nextGaussian(increment * h[index]) * a[index] }.sum()

Callers 1

RandomCascadeClass · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected