September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -31,7 +31,7 @@ def makeIntervalTree(assocs :List[Tuple[any, float64]]) {
|
|||
return split(assocs[midpoint][1], makeIntervalTree(assocs.run(0, midpoint)),
|
||||
makeIntervalTree(assocs.run(midpoint)))
|
||||
} else {
|
||||
def <nowiki>[[value, _]] := assocs</nowiki>
|
||||
def [[value, _]] := assocs
|
||||
return leaf(value)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ constant @event = <aleph beth gimel daleth he waw zayin heth>;
|
|||
constant @P = flat (1 X/ 5 .. 11), 1759/27720;
|
||||
constant @cP = [\+] @P;
|
||||
|
||||
my @results;
|
||||
@results[ @cP.first: { $_ > once rand }, :k ]++ xx TRIALS;
|
||||
my atomicint @results[+@event];
|
||||
(^TRIALS).race.map: { @results[ @cP.first: { $_ > once rand }, :k ]⚛++; }
|
||||
|
||||
say 'Event Occurred Expected Difference';
|
||||
for ^@results {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue