Search in sources :

Example 1 with OpticsData

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;
}
Also used : GraphEditDistance(org.iobserve.service.behavior.analysis.clustering.GraphEditDistance) OpticsData(org.iobserve.service.behavior.analysis.clustering.OpticsData) MTree(mtree.MTree)

Example 2 with OpticsData

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);
}
Also used : OpticsData(org.iobserve.service.behavior.analysis.clustering.OpticsData) ArrayList(java.util.ArrayList) BehaviorModelGED(org.iobserve.service.behavior.analysis.model.BehaviorModelGED) Before(org.junit.Before)

Aggregations

OpticsData (org.iobserve.service.behavior.analysis.clustering.OpticsData)2 ArrayList (java.util.ArrayList)1 MTree (mtree.MTree)1 GraphEditDistance (org.iobserve.service.behavior.analysis.clustering.GraphEditDistance)1 BehaviorModelGED (org.iobserve.service.behavior.analysis.model.BehaviorModelGED)1 Before (org.junit.Before)1