Package de.lmu.ifi.dbs.elki.data.synthetic.bymodel

Examples of de.lmu.ifi.dbs.elki.data.synthetic.bymodel.GeneratorMain


  @Override
  public MultipleObjectsBundle loadData() {
    if(logger.isVerbose()) {
      logger.verbose("Loading specification ...");
    }
    GeneratorMain gen;
    try {
      gen = loadXMLSpecification();
    }
    catch(UnableToComplyException e) {
      throw new AbortException("Cannot load XML specification", e);
    }
    if(logger.isVerbose()) {
      logger.verbose("Generating clusters ...");
    }
    if(testAgainstModel != null) {
      gen.setTestAgainstModel(testAgainstModel);
    }
    try {
      return gen.generate();
    }
    catch(UnableToComplyException e) {
      throw new AbortException("Data generation failed. ", e);
    }
  }
View Full Code Here


        logger.warning("Could not set up XML Schema validation for speciciation file.");
      }
      Document doc = dbf.newDocumentBuilder().parse(in);
      Node root = doc.getDocumentElement();
      if(root.getNodeName() == "dataset") {
        GeneratorMain gen = new GeneratorMain();
        processElementDataset(gen, root);
        return gen;
      }
      else {
        throw new UnableToComplyException("Experiment specification has incorrect document element: " + root.getNodeName());
View Full Code Here

TOP

Related Classes of de.lmu.ifi.dbs.elki.data.synthetic.bymodel.GeneratorMain

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.