package ca.joeltherrien.randomforest; import lombok.RequiredArgsConstructor; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ThreadLocalRandom; @RequiredArgsConstructor public class Bootstrapper { final private List originalData; public List bootstrap(){ final int n = originalData.size(); final List newList = new ArrayList<>(n); for(int i=0; i