March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
|
|
@ -1,7 +1,5 @@
|
|||
import std.stdio, std.algorithm, std.array, combinations3;
|
||||
|
||||
alias sum = reduce!q{a + b};
|
||||
|
||||
auto permutationTest(T)(in T[] a, in T[] b) /*pure nothrow*/ {
|
||||
immutable tObs = a.sum;
|
||||
//auto combs = combinations!false(a ~ b, a.length); // Not a Range.
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ void main() {
|
|||
immutable treatment = [85, 88, 75, 66, 25, 29, 83, 39, 97];
|
||||
immutable control = [68, 41, 10, 49, 16, 65, 32, 92, 28, 98];
|
||||
immutable both = treatment ~ control;
|
||||
immutable sTreat = treatment.reduce!q{a + b};
|
||||
immutable sTreat = treatment.sum;
|
||||
|
||||
T pick(T)(in size_t at, in size_t remain, in T accu) pure nothrow {
|
||||
if (remain == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue