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; final private Random random = new Random(); public List bootstrap(){ final int n = originalData.size(); final List newList = new ArrayList<>(n); for(int i=0; i