Skip to content

Commit

Permalink
Better stratification, using Round instead of Floor.
Browse files Browse the repository at this point in the history
  • Loading branch information
antononcube committed Jul 17, 2013
1 parent a449f72 commit 702b144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AVCDecisionTreeForest.m
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Mathematica is (C) Copyright 1988-2012 Wolfram Research, Inc.
If[min == max,
data,
h = (max - min)/nStrata;
Map[Floor[(# - min)/h]*h + min &, data]
Map[Round[(# - min), h] + min &, data]
]
];
Stratify[data_, nStrata_Integer] := data;
Expand Down

0 comments on commit 702b144

Please sign in to comment.