*
* @return Bundle
*/
public MultipleObjectsBundle getBundle() {
final int dim = generators.get(0).getDim();
final DoubleVector factory = new DoubleVector(new double[dim]);
MultipleObjectsBundle bundle = new MultipleObjectsBundle();
VectorFieldTypeInformation<DoubleVector> type = new VectorFieldTypeInformation<DoubleVector>(DoubleVector.class, dim, factory);
bundle.appendColumn(type, new ArrayList<Object>());
bundle.appendColumn(TypeUtil.CLASSLABEL, new ArrayList<Object>());
for(GeneratorInterface generator : generators) {
ClassLabel l = new SimpleClassLabel(generator.getName());
for(Vector v : generator.getPoints()) {
DoubleVector dv = new DoubleVector(v);
bundle.appendSimple(dv, l);
}
}
return bundle;
}