Add optimizations. #13

Merged
joel merged 6 commits from optimizations into master 2019-01-14 19:08:14 +00:00
Showing only changes of commit 86122fd90d - Show all commits

View file

@ -52,7 +52,7 @@ public final class NumericCovariate implements Covariate<Double> {
if(number == 0){
dataIterator = new UniqueValueIterator<>(sortedDataIterator);
}
else{ // random splitting; we will not weight based on how many times a Row appears in the bootstrap sample
else{
final TreeSet<Integer> indexSet = new TreeSet<>();
final int maxIndex = data.size();