Hi
I'm back again with this distribution displayrelated question: is this the correct way to print 3 elements from the Stream result of algorithm.distribution(target) ?
val bias = Beta(5,2)
val algorithm = Importance(bias)
algorithm.start()
Thread.sleep(100)
algorithm.stop()
val streamExtract = algorithm.distribution(bias).take(3).toList
println(streamExtract)
algorithm.kill()
By the way, output was: List((0.0024691358024691457,0.8560160653642479), (0.0024691358024691457,0.8763925094641281), (0.0024691358024691457,0.6408510188252967))
Why is probability (0.0024691358024691457) the same for all values ? Thanks in advance !
FYI, here is the result in R for the 3 vaues above:
R: pbeta(q = c(0.8560160653642479, 0.8763925094641281, 0.6408510188252967), shape1 = 5, shape2 = 2, ncp = 0)
[1] 0.7905289 0.8365306 0.3021920
