diff options
Diffstat (limited to 'src/de/lmu/ifi/dbs/elki/data/synthetic/bymodel/GeneratorMain.java')
-rw-r--r-- | src/de/lmu/ifi/dbs/elki/data/synthetic/bymodel/GeneratorMain.java | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/de/lmu/ifi/dbs/elki/data/synthetic/bymodel/GeneratorMain.java b/src/de/lmu/ifi/dbs/elki/data/synthetic/bymodel/GeneratorMain.java index 6870fcaa..4d93e1ea 100644 --- a/src/de/lmu/ifi/dbs/elki/data/synthetic/bymodel/GeneratorMain.java +++ b/src/de/lmu/ifi/dbs/elki/data/synthetic/bymodel/GeneratorMain.java @@ -70,7 +70,12 @@ public class GeneratorMain { /** * List of clusters to generate */ - private LinkedList<GeneratorInterface> generators = new LinkedList<GeneratorInterface>(); + protected LinkedList<GeneratorInterface> generators = new LinkedList<GeneratorInterface>(); + + /** + * Controls whether points are tested against the model during generation + */ + protected boolean testAgainstModel = true; /** * Add a cluster to the cluster list. @@ -82,11 +87,6 @@ public class GeneratorMain { } /** - * Controls whether points are tested against the model during generation - */ - private boolean testAgainstModel = true; - - /** * Main loop to generate data set. * * @throws UnableToComplyException when model not satisfiable or no clusters @@ -154,6 +154,13 @@ public class GeneratorMain { cursclus.incrementDiscarded(); } } + } else { + // Keep all. + for (Vector p : newp) { + DoubleVector dv = new DoubleVector(p); + bundle.appendSimple(dv, l, model); + ++kept; + } } } } |