MCPcopy Index your code
hub / github.com/apache/groovy / makeCumulative

Method makeCumulative

benchmark/bench/fasta.java:61–67  ·  view source on GitHub ↗
(frequency[] a)

Source from the content-addressed store, hash-verified

59 new frequency('t', 0.3015094502008d)};
60
61 public static void makeCumulative(frequency[] a) {
62 double cp = 0.0;
63 for (int i = 0; i < a.length; i++) {
64 cp += a[i].p;
65 a[i].p = cp;
66 }
67 }
68
69 // naive
70 public static final byte selectRandom(frequency[] a) {

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected