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