continue reflecting about mixtures & stuff
This commit is contained in:
parent
7d59beb4bf
commit
2314bf5db2
1
fermi.go
1
fermi.go
|
@ -215,7 +215,6 @@ func prettyPrintStats(dist Dist) {
|
||||||
print_ci(0.90, "ci 90%: ")
|
print_ci(0.90, "ci 90%: ")
|
||||||
print_ci(0.95, "ci 95%: ")
|
print_ci(0.95, "ci 95%: ")
|
||||||
print_ci(0.99, "ci 99%: ")
|
print_ci(0.99, "ci 99%: ")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Operations */
|
/* Operations */
|
||||||
|
|
|
@ -258,8 +258,8 @@ func Sample_parallel(f func64, n_samples int) []float64 {
|
||||||
go func(f func64) {
|
go func(f func64) {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
var r = rand.New(rand.NewPCG(uint64(i), uint64(i+1)))
|
var r = rand.New(rand.NewPCG(uint64(i), uint64(i+1)))
|
||||||
for i := range xs_i {
|
for j := range xs_i {
|
||||||
xs_i[i] = f(r)
|
xs_i[j] = f(r)
|
||||||
}
|
}
|
||||||
}(f)
|
}(f)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user