A program to recognize and reward our most engaged community members
Attribute attribute = exampleSet.getAttributes().get("nameOfAttribute")
example.setValue(attribute, 85.0d);
example.setValue(attribute, "hello world!");
MemoryExampleTable table = new MemoryExampleTable(listOfAttributes); // a list with Attributes// example of how to fill the double arraydoubleArray = new double[listOfAttributes.size()];// nominal attributeAttribute attNominal = listOfAttributes.get(0);doubleArray[0] = attNominal.getMapping().mapString("hello world!");// numerical attributeAttribute attNumerical = listOfAttributes.get(1);doubleArray[1] = 85.0d;table.addDataRow(new DoubleArrayDataRow(doubleArray)); // doubleArray is a double array with as many entries as the table has attributesExampleSet exampleSet = table.createExampleSet();