public class Data { private Object data [][]; private int numberOfExamples; private Attribute explanatorySet[]; private DiscreteAttribute classAttribute; Data(){ //data data = new Object [14][5]; // 1) TO DO: POPOLARE DATA //... // 2) TO DO: ASSEGNARE numberOfExamples //... explanatorySet = new Attribute[4]; // 3)TO DO: POPOLARE explanatory Set //classAttribute String playValues[]=new String[2]; playValues[0]="no"; playValues[1]="yes"; classAttribute=new DiscreteAttribute("PlayTennis", 4, playValues); } int getNumberOfExamples(){ //TO DO } int getNumberOfExplanatoryAttributes(){ //TO DO } String getClassValue(int exampleIndex){ //TO DO } Object getExplanatoryValue(int exampleIndex, int attributeIndex){ //TO DO } Attribute getExplanatoryAttribute(int index){ //TO DO } DiscreteAttribute getClassAttribute(){ //TO DO } public String toString(){ String value=""; //TO DO return value; } void sort(Attribute attribute, int beginExampleIndex, int endExampleIndex){ quicksort(attribute, beginExampleIndex, endExampleIndex); } // scambio esempio i con esempi oj private void swap(int i,int j){ Object temp; for (int k=0;k0) { j--; } if(i