use of org.iobserve.service.behavior.analysis.clustering.OpticsData in project iobserve-analysis by research-iobserve.
the class TestHelper method generateMTree.
public static MTree<OpticsData> generateMTree(final List<OpticsData> models) {
final GraphEditDistance ged = new GraphEditDistance();
final MTree<OpticsData> mtree = new MTree<>(20, 40, OpticsData.getDistanceFunction(), null);
for (final OpticsData model : models) {
mtree.add(model);
}
return mtree;
}
use of org.iobserve.service.behavior.analysis.clustering.OpticsData in project iobserve-analysis by research-iobserve.
the class OpticsStageTest method setup.
@Before
public void setup() {
final List<BehaviorModelGED> behaviorModels = new ArrayList<>();
behaviorModels.add(TestHelper.createBehaviorModelA());
behaviorModels.add(TestHelper.createBehaviorModelA());
behaviorModels.add(TestHelper.createBehaviorModelA());
behaviorModels.add(TestHelper.createBehaviorModelA());
behaviorModels.add(TestHelper.createBehaviorModelA());
behaviorModels.add(TestHelper.createBehaviorModelB());
behaviorModels.add(TestHelper.createBehaviorModelB());
behaviorModels.add(TestHelper.createBehaviorModelB());
behaviorModels.add(TestHelper.createBehaviorModelB());
behaviorModels.add(TestHelper.createBehaviorModelB());
behaviorModels.add(TestHelper.createBehaviorModelC());
behaviorModels.add(TestHelper.createBehaviorModelC());
behaviorModels.add(TestHelper.createBehaviorModelC());
behaviorModels.add(TestHelper.createBehaviorModelC());
behaviorModels.add(TestHelper.createBehaviorModelC());
behaviorModels.add(TestHelper.createBehaviorModelD());
behaviorModels.add(TestHelper.createBehaviorModelD());
behaviorModels.add(TestHelper.createBehaviorModelD());
behaviorModels.add(TestHelper.createBehaviorModelD());
behaviorModels.add(TestHelper.createBehaviorModelD());
// noise
behaviorModels.add(TestHelper.createBehaviorModelE());
behaviorModels.add(TestHelper.createBehaviorModelE());
this.models = new ArrayList<>();
for (final BehaviorModelGED model : behaviorModels) {
this.models.add(new OpticsData(model));
}
this.mTree = TestHelper.generateMTree(this.models);
}
Aggregations