|
|
|
@ -120,7 +120,7 @@ func draw148PplFromDistributionAndCheck(d IntProbs, r src, show bool) int64 {
|
|
|
|
|
|
|
|
|
|
func getUnnormalizedBayesianUpdateForDistribution(d IntProbs, r src) int64 {
|
|
|
|
|
var sum int64 = 0
|
|
|
|
|
n := 1000
|
|
|
|
|
n := 30_000
|
|
|
|
|
for i := 0; i < n; i++ {
|
|
|
|
|
/* if i%1000 == 0 {
|
|
|
|
|
fmt.Println(i)
|
|
|
|
@ -134,11 +134,11 @@ func getUnnormalizedBayesianUpdateForDistribution(d IntProbs, r src) int64 {
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
|
|
|
|
|
|
n_dists := 1000
|
|
|
|
|
n_dists := 30_000
|
|
|
|
|
var dists = make([]IntProbsWeights, n_dists)
|
|
|
|
|
|
|
|
|
|
// Prepare for concurrency
|
|
|
|
|
num_threads := 8
|
|
|
|
|
num_threads := 32
|
|
|
|
|
var wg sync.WaitGroup
|
|
|
|
|
wg.Add(num_threads)
|
|
|
|
|
|
|
|
|
|