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

Method nextGaussian

src/main/java/trace/random/Random.kt:77–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76 fun nextGaussian(): Double {
77 while (bi < 0)
78 nextDouble(1.0)
79
80 bi = 0
81 T = 0.0
82 b = source.nextGaussian()
83 return b
84 }
85
86 fun nextGaussian(increment: Double): Double {
87 val i = if (increment > 4) increment % 4 else increment
88 T += i
89 while (bi < Math.floor(T)) {
90 a = b

Callers

nothing calls this directly

Calls 1

evaluateCubicFrameMethod · 0.45

Tested by

no test coverage detected