Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
DDred committed Sep 12, 2011
1 parent b0cf4d2 commit 43a550a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/rapidminer/SamplingDistributionRM.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ public void doWork() throws OperatorException {
for (Example example : sample) {
picks.add(example.getValue(attribute));
}
Picks sampling = picks.calculatePicks(CalculatorFactory.getSampling(getParameterAsInt(PARAMETER_INTERVALS_COUNT)));
Picks sampling = null;
try {
sampling = picks.calculatePicks(CalculatorFactory.getSampling(getParameterAsInt(PARAMETER_INTERVALS_COUNT)));
} catch (Exception e) {
System.err.println("Exception");
e.printStackTrace();
}
sampling.resetIterator();
while (sampling.hasNext()) {
outValues[sampling.getIndex()][attrNum] = sampling.next();
Expand Down

0 comments on commit 43a550a

Please sign in to comment.