2024-election-modelling

A walking stick to Nate Silver's sportscar
Log | Files | Refs | README

commit 16192861a0001deaf17cd15fbf0060c2676ea6fb
parent 9278ce834961372e7ddf2aee8453a36aa2c37c26
Author: NunoSempere <nuno.semperelh@protonmail.com>
Date:   Tue, 11 Jun 2024 18:02:18 -0400

update top of histogram

Diffstat:
Mmain.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.go b/main.go @@ -302,7 +302,7 @@ func printElectoralCollegeHistogram(samples []int) { p := float64(count) / float64(len(samples)) * 100 cp += p - if i > 130 && i < 400 { + if i > 130 && i < 538 { fmt.Printf("[ %2d, %4d): %s %.2f%% (%.0f%%)\n", i, i+1, barString(bar_length), p, cp) } else if p >= 0.01 { fmt.Printf(">0.01 probability outside of domain, you might want to change histogram parameters\n")