public Object clone () { InstanceList[] newLists = new InstanceList[this.lists.length]; for (int i = 0; i < this.lists.length; i++) { newLists[i] = (InstanceList) this.lists[i].clone (); } return new MultiInstanceList (newLists); }
public Object clone () { InstanceList[] newLists = new InstanceList[this.lists.length]; for (int i = 0; i < this.lists.length; i++) { newLists[i] = (InstanceList) this.lists[i].clone (); } return new MultiInstanceList (newLists); }
public Object clone () { InstanceList[] newLists = new InstanceList[this.lists.length]; for (int i = 0; i < this.lists.length; i++) { newLists[i] = (InstanceList) this.lists[i].clone (); } return new MultiInstanceList (newLists); }
public InstanceList subList (double proportion) { if (proportion > 1.0) throw new IllegalArgumentException ("proportion must by <= 1.0"); InstanceList other = (InstanceList) clone(); other.shuffle(new java.util.Random()); proportion *= other.size(); for (int i = 0; i < proportion; i++) other.add (get(i)); return other; }
public InstanceList subList (double proportion) { if (proportion > 1.0) throw new IllegalArgumentException ("proportion must by <= 1.0"); InstanceList other = (InstanceList) clone(); other.shuffle(new java.util.Random()); proportion *= other.size(); for (int i = 0; i < proportion; i++) other.add (get(i)); return other; }
public InstanceList subList (double proportion) { if (proportion > 1.0) throw new IllegalArgumentException ("proportion must by <= 1.0"); InstanceList other = (InstanceList) clone(); other.shuffle(new java.util.Random()); proportion *= other.size(); for (int i = 0; i < proportion; i++) other.add (get(i)); return other; }