...
|
...
|
@@ -9,12 +9,12 @@
|
9
|
9
|
#endif
|
10
|
10
|
|
11
|
11
|
// create "nSets" vectors where each vector contains a vector of indices in the
|
12
|
|
-// range [1,n)
|
|
12
|
+// range [0,n)
|
13
|
13
|
// see createGWCoGAPSSets.R - here we just sample indices, that function
|
14
|
14
|
// samples gene names as well
|
15
|
15
|
static std::vector< std::vector<unsigned> > sampleIndices(unsigned n, unsigned nSets)
|
16
|
16
|
{
|
17
|
|
- unsigned setSize = (int) (n - 1) / (nSets - 1);
|
|
17
|
+ unsigned setSize = (int) n / nSets;
|
18
|
18
|
std::vector< std::vector<unsigned> > sampleIndices;
|
19
|
19
|
std::vector<unsigned> toBeSampled;
|
20
|
20
|
for (unsigned i = 1; i < n; ++i)
|