Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static double[] randomSample(double[] data, int sampleSize)
- {
- List sample = (ArrayList) Arrays.asList(data);
- Collections.shuffle(sample);
- Double samplet[] = sample.toArray(new Double[sample.size()]);
- return samplet;
- }
Add Comment
Please, Sign In to add comment