예제 #1
0
 def testClusteringSampleSimple1Euclidean(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
                                    2,
                                    1.0, [5, 5],
                                    True,
                                    metric=distance_metric(
                                        type_metric.EUCLIDEAN))
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
                                    2,
                                    10.0, [10],
                                    True,
                                    metric=distance_metric(
                                        type_metric.EUCLIDEAN))
예제 #2
0
 def testClusteringSampleSimple1Manhattan(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
                                    2,
                                    1.0, [5, 5],
                                    True,
                                    metric=distance_metric(
                                        type_metric.MANHATTAN))
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
                                    2,
                                    10.0, [10],
                                    True,
                                    metric=distance_metric(
                                        type_metric.MANHATTAN))
예제 #3
0
 def testClusteringSampleSimple1Chebyshev(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
                                    2,
                                    1.0, [5, 5],
                                    True,
                                    metric=distance_metric(
                                        type_metric.CHEBYSHEV))
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
                                    2,
                                    10.0, [10],
                                    True,
                                    metric=distance_metric(
                                        type_metric.CHEBYSHEV))
예제 #4
0
 def testClusteringSampleSimple1(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 1.0,
                                    [5, 5], True)
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 10, 1.0,
                                    [5, 5], True)
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 10.0,
                                    [10], True)
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 1, 1.0,
                                    [10], True)
예제 #5
0
 def testTheSamePoints1(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 3, 1.0,
                                    [5, 5, 5], True)
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 30, 1.0,
                                    [5, 5, 5], True)
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 3, 10.0,
                                    [15], True)
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 1, 1.0,
                                    [15], True)
예제 #6
0
 def testClusteringSampleSimple1EuclideanSquare(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
                                    2,
                                    1.0, [5, 5],
                                    False,
                                    metric=distance_metric(
                                        type_metric.EUCLIDEAN_SQUARE))
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
                                    2,
                                    10.0, [5, 5],
                                    False,
                                    metric=distance_metric(
                                        type_metric.EUCLIDEAN_SQUARE))
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
                                    2,
                                    100.0, [10],
                                    False,
                                    metric=distance_metric(
                                        type_metric.EUCLIDEAN_SQUARE))
예제 #7
0
 def testThreeDimentionalPoints(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE11, 2, 1.0,
                                    [10, 10], True)
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE11, 2, 10.0,
                                    [20], True)
예제 #8
0
 def testClusteringSampleSimple1Manhattan(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 1.0, [5, 5], False, metric=distance_metric(type_metric.MANHATTAN));
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 10.0, [10], False, metric=distance_metric(type_metric.MANHATTAN));
예제 #9
0
 def testClusteringSampleSimple3(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 4, 2.0,
                                    [10, 10, 10, 30], True)
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 4, 10.0,
                                    [60], True)
예제 #10
0
 def testOneDimentionalPoints2(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 2, 1.0,
                                    [10, 20], True)
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 2, 10.0,
                                    [30], True)
예제 #11
0
 def testProcessingWhenLibraryCoreCorrupted(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 1.0, [5, 5], True);
예제 #12
0
 def testClusteringSampleSimple2(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 3, 1.0, [5, 8, 10], False);
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 3, 10.0, [23], False);
예제 #13
0
 def testOneDimentionalPoints1(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE7, 2, 1.0, [10, 10], True);
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE7, 2, 10.0, [20], True);
예제 #14
0
 def testClusteringSampleSimple1EuclideanSquare(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 1.0, [5, 5], False, metric=distance_metric(type_metric.EUCLIDEAN_SQUARE));
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 10.0, [5, 5], False, metric=distance_metric(type_metric.EUCLIDEAN_SQUARE));
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 100.0, [10], False, metric=distance_metric(type_metric.EUCLIDEAN_SQUARE));
예제 #15
0
 def testTheSamePoints1(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 3, 1.0, [5, 5, 5], False);
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 30, 1.0, [5, 5, 5], False);
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 3, 10.0, [15], False);
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE12, 1, 1.0, [15], False);
예제 #16
0
 def testTheSamePoints2(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 3, 1.0, [10, 20], False);
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 3, 10.0, [30], False);
예제 #17
0
 def testThreeDimentionalPoints(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE11, 2, 1.0, [10, 10], False);
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE11, 2, 10.0, [20], False);
예제 #18
0
 def testOneDimentionalPoints2(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 2, 1.0, [10, 20], False);
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 2, 10.0, [30], False);
예제 #19
0
 def testClusteringSampleSimple3(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 4, 2.0, [10, 10, 10, 30], False);
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE3, 4, 10.0, [60], False);
예제 #20
0
 def testTheSamePoints2(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 3, 1.0,
                                    [10, 20], True)
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE9, 3, 10.0,
                                    [30], True)
예제 #21
0
 def testOneDimentionalPoints1(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE7, 2, 1.0, [10, 10], True);
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE7, 2, 10.0, [20], True);
예제 #22
0
 def testProcessingWhenLibraryCoreCorrupted(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 1.0,
                                    [5, 5], True)
예제 #23
0
 def runRemovedLibraryCoreTest(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 1.0, [5, 5], True)
예제 #24
0
 def testClusteringSampleSimple1(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 1.0, [5, 5], False);
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 10, 1.0, [5, 5], False);
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 10.0, [10], False);
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 1, 1.0, [10], False);
예제 #25
0
 def testClusteringSampleSimple2(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 3, 1.0,
                                    [5, 8, 10], True)
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE2, 3, 10.0,
                                    [23], True)
예제 #26
0
 def testClusteringSampleSimple1Euclidean(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 1.0, [5, 5], True, metric=distance_metric(type_metric.EUCLIDEAN));
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 10.0, [10], True, metric=distance_metric(type_metric.EUCLIDEAN));
예제 #27
0
 def testClusteringSampleSimple1Chebyshev(self):
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 1.0, [5, 5], False, metric=distance_metric(type_metric.CHEBYSHEV));
     mbsas_test_template.clustering(SIMPLE_SAMPLES.SAMPLE_SIMPLE1, 2, 10.0, [10], False, metric=distance_metric(type_metric.CHEBYSHEV));