1
- diff --git a/.history/lib/DBSCAN_20231205115425.js b/.history/lib/DBSCAN_20231205115425.js
2
- new file mode 100644
3
- index 0000000000000000000000000000000000000000..433b454c8d1e27ed951c7ba53052a4036e25f43d
4
- --- /dev/null
5
- +++ b/.history/lib/DBSCAN_20231205115425.js
6
- @@ -0,0 +1,236 @@
1
+ diff --git a/.history/lib/DBSCAN_20231205115425.js b/.history/lib/DBSCAN_20231205115425.js
2
+ new file mode 100644
3
+ index 0000000000000000000000000000000000000000..433b454c8d1e27ed951c7ba53052a4036e25f43d
4
+ --- /dev/null
5
+ +++ b/.history/lib/DBSCAN_20231205115425.js
6
+ @@ -0,0 +1,236 @@
7
7
+ /**
8
8
+ * DBSCAN - Density based clustering
9
9
+ *
@@ -240,12 +240,12 @@ index 0000000000000000000000000000000000000000..433b454c8d1e27ed951c7ba53052a403
240
240
+ if (typeof module !== 'undefined' && module.exports) {
241
241
+ module.exports = DBSCAN;
242
242
+ }
243
- diff --git a/.history/lib/DBSCAN_20231205115515.js b/.history/lib/DBSCAN_20231205115515.js
244
- new file mode 100644
245
- index 0000000000000000000000000000000000000000..54f8c4438faba26ebafd22ec9d7a228f6dfdef94
246
- --- /dev/null
247
- +++ b/.history/lib/DBSCAN_20231205115515.js
248
- @@ -0,0 +1,236 @@
243
+ diff --git a/.history/lib/DBSCAN_20231205115515.js b/.history/lib/DBSCAN_20231205115515.js
244
+ new file mode 100644
245
+ index 0000000000000000000000000000000000000000..54f8c4438faba26ebafd22ec9d7a228f6dfdef94
246
+ --- /dev/null
247
+ +++ b/.history/lib/DBSCAN_20231205115515.js
248
+ @@ -0,0 +1,236 @@
249
249
+ /**
250
250
+ * DBSCAN - Density based clustering
251
251
+ *
@@ -482,12 +482,12 @@ index 0000000000000000000000000000000000000000..54f8c4438faba26ebafd22ec9d7a228f
482
482
+ if (module.exports) {
483
483
+ module.exports = DBSCAN;
484
484
+ }
485
- diff --git a/.history/lib/DBSCAN_20231205115526.js b/.history/lib/DBSCAN_20231205115526.js
486
- new file mode 100644
487
- index 0000000000000000000000000000000000000000..54f8c4438faba26ebafd22ec9d7a228f6dfdef94
488
- --- /dev/null
489
- +++ b/.history/lib/DBSCAN_20231205115526.js
490
- @@ -0,0 +1,236 @@
485
+ diff --git a/.history/lib/DBSCAN_20231205115526.js b/.history/lib/DBSCAN_20231205115526.js
486
+ new file mode 100644
487
+ index 0000000000000000000000000000000000000000..54f8c4438faba26ebafd22ec9d7a228f6dfdef94
488
+ --- /dev/null
489
+ +++ b/.history/lib/DBSCAN_20231205115526.js
490
+ @@ -0,0 +1,236 @@
491
491
+ /**
492
492
+ * DBSCAN - Density based clustering
493
493
+ *
@@ -724,13 +724,13 @@ index 0000000000000000000000000000000000000000..54f8c4438faba26ebafd22ec9d7a228f
724
724
+ if (module.exports) {
725
725
+ module.exports = DBSCAN;
726
726
+ }
727
- diff --git a/.history/lib/KMEANS_20231205115425.js b/.history/lib/KMEANS_20231205115425.js
728
- new file mode 100644
729
- index 0000000000000000000000000000000000000000..21646f447f20fa710a7d855e597a9b9f9643b2f5
730
- --- /dev/null
731
- +++ b/.history/lib/KMEANS_20231205115425.js
732
- @@ -0,0 +1,213 @@
733
- + /**
727
+ diff --git a/.history/lib/KMEANS_20231205115425.js b/.history/lib/KMEANS_20231205115425.js
728
+ new file mode 100644
729
+ index 0000000000000000000000000000000000000000..21646f447f20fa710a7d855e597a9b9f9643b2f5
730
+ --- /dev/null
731
+ +++ b/.history/lib/KMEANS_20231205115425.js
732
+ @@ -0,0 +1,213 @@
733
+ + /**
734
734
+ * KMEANS clustering
735
735
+ *
736
736
+ * @author Lukasz Krawczyk <[email protected] >
@@ -943,13 +943,13 @@ index 0000000000000000000000000000000000000000..21646f447f20fa710a7d855e597a9b9f
943
943
+ if (typeof module !== 'undefined' && module.exports) {
944
944
+ module.exports = KMEANS;
945
945
+ }
946
- diff --git a/.history/lib/KMEANS_20231205115515.js b/.history/lib/KMEANS_20231205115515.js
947
- new file mode 100644
948
- index 0000000000000000000000000000000000000000..a6fab6e802b5ce7c9f7f8ac4183faff29181b22d
949
- --- /dev/null
950
- +++ b/.history/lib/KMEANS_20231205115515.js
951
- @@ -0,0 +1,213 @@
952
- + /**
946
+ diff --git a/.history/lib/KMEANS_20231205115515.js b/.history/lib/KMEANS_20231205115515.js
947
+ new file mode 100644
948
+ index 0000000000000000000000000000000000000000..a6fab6e802b5ce7c9f7f8ac4183faff29181b22d
949
+ --- /dev/null
950
+ +++ b/.history/lib/KMEANS_20231205115515.js
951
+ @@ -0,0 +1,213 @@
952
+ + /**
953
953
+ * KMEANS clustering
954
954
+ *
955
955
+ * @author Lukasz Krawczyk <[email protected] >
@@ -1162,12 +1162,12 @@ index 0000000000000000000000000000000000000000..a6fab6e802b5ce7c9f7f8ac4183faff2
1162
1162
+ if (module.exports) {
1163
1163
+ module.exports = KMEANS;
1164
1164
+ }
1165
- diff --git a/.history/lib/OPTICS_20231205115425.js b/.history/lib/OPTICS_20231205115425.js
1166
- new file mode 100644
1167
- index 0000000000000000000000000000000000000000..867e081630c3a4ee2d2615d902642e11249f4981
1168
- --- /dev/null
1169
- +++ b/.history/lib/OPTICS_20231205115425.js
1170
- @@ -0,0 +1,269 @@
1165
+ diff --git a/.history/lib/OPTICS_20231205115425.js b/.history/lib/OPTICS_20231205115425.js
1166
+ new file mode 100644
1167
+ index 0000000000000000000000000000000000000000..867e081630c3a4ee2d2615d902642e11249f4981
1168
+ --- /dev/null
1169
+ +++ b/.history/lib/OPTICS_20231205115425.js
1170
+ @@ -0,0 +1,269 @@
1171
1171
+
1172
1172
+ /**
1173
1173
+ * @requires ./PriorityQueue.js
@@ -1437,12 +1437,12 @@ index 0000000000000000000000000000000000000000..867e081630c3a4ee2d2615d902642e11
1437
1437
+ if (typeof module !== 'undefined' && module.exports) {
1438
1438
+ module.exports = OPTICS;
1439
1439
+ }
1440
- diff --git a/.history/lib/OPTICS_20231205115515.js b/.history/lib/OPTICS_20231205115515.js
1441
- new file mode 100644
1442
- index 0000000000000000000000000000000000000000..1a2f86f294a6ee1589272cb7d20fe4fa697cc62c
1443
- --- /dev/null
1444
- +++ b/.history/lib/OPTICS_20231205115515.js
1445
- @@ -0,0 +1,269 @@
1440
+ diff --git a/.history/lib/OPTICS_20231205115515.js b/.history/lib/OPTICS_20231205115515.js
1441
+ new file mode 100644
1442
+ index 0000000000000000000000000000000000000000..1a2f86f294a6ee1589272cb7d20fe4fa697cc62c
1443
+ --- /dev/null
1444
+ +++ b/.history/lib/OPTICS_20231205115515.js
1445
+ @@ -0,0 +1,269 @@
1446
1446
+
1447
1447
+ /**
1448
1448
+ * @requires ./PriorityQueue.js
@@ -1712,12 +1712,12 @@ index 0000000000000000000000000000000000000000..1a2f86f294a6ee1589272cb7d20fe4fa
1712
1712
+ if (module.exports) {
1713
1713
+ module.exports = OPTICS;
1714
1714
+ }
1715
- diff --git a/.history/lib/PriorityQueue_20231205115425.js b/.history/lib/PriorityQueue_20231205115425.js
1716
- new file mode 100644
1717
- index 0000000000000000000000000000000000000000..beda2305bf1585d672f92c93a55391c393dac43d
1718
- --- /dev/null
1719
- +++ b/.history/lib/PriorityQueue_20231205115425.js
1720
- @@ -0,0 +1,180 @@
1715
+ diff --git a/.history/lib/PriorityQueue_20231205115425.js b/.history/lib/PriorityQueue_20231205115425.js
1716
+ new file mode 100644
1717
+ index 0000000000000000000000000000000000000000..beda2305bf1585d672f92c93a55391c393dac43d
1718
+ --- /dev/null
1719
+ +++ b/.history/lib/PriorityQueue_20231205115425.js
1720
+ @@ -0,0 +1,180 @@
1721
1721
+ /**
1722
1722
+ * PriorityQueue
1723
1723
+ * Elements in this queue are sorted according to their value
@@ -1898,12 +1898,12 @@ index 0000000000000000000000000000000000000000..beda2305bf1585d672f92c93a55391c3
1898
1898
+ if (typeof module !== 'undefined' && module.exports) {
1899
1899
+ module.exports = PriorityQueue;
1900
1900
+ }
1901
- diff --git a/.history/lib/PriorityQueue_20231205115515.js b/.history/lib/PriorityQueue_20231205115515.js
1902
- new file mode 100644
1903
- index 0000000000000000000000000000000000000000..23be5a7061c311446a76fca1e17fd68539738648
1904
- --- /dev/null
1905
- +++ b/.history/lib/PriorityQueue_20231205115515.js
1906
- @@ -0,0 +1,180 @@
1901
+ diff --git a/.history/lib/PriorityQueue_20231205115515.js b/.history/lib/PriorityQueue_20231205115515.js
1902
+ new file mode 100644
1903
+ index 0000000000000000000000000000000000000000..23be5a7061c311446a76fca1e17fd68539738648
1904
+ --- /dev/null
1905
+ +++ b/.history/lib/PriorityQueue_20231205115515.js
1906
+ @@ -0,0 +1,180 @@
1907
1907
+ /**
1908
1908
+ * PriorityQueue
1909
1909
+ * Elements in this queue are sorted according to their value
@@ -2084,12 +2084,12 @@ index 0000000000000000000000000000000000000000..23be5a7061c311446a76fca1e17fd685
2084
2084
+ if (module.exports) {
2085
2085
+ module.exports = PriorityQueue;
2086
2086
+ }
2087
- diff --git a/.history/lib/index_20231205115425.js b/.history/lib/index_20231205115425.js
2088
- new file mode 100644
2089
- index 0000000000000000000000000000000000000000..a9c5d52a2d5dde2a22ba5f03e54abf3b68f796d8
2090
- --- /dev/null
2091
- +++ b/.history/lib/index_20231205115425.js
2092
- @@ -0,0 +1,9 @@
2087
+ diff --git a/.history/lib/index_20231205115425.js b/.history/lib/index_20231205115425.js
2088
+ new file mode 100644
2089
+ index 0000000000000000000000000000000000000000..a9c5d52a2d5dde2a22ba5f03e54abf3b68f796d8
2090
+ --- /dev/null
2091
+ +++ b/.history/lib/index_20231205115425.js
2092
+ @@ -0,0 +1,9 @@
2093
2093
+
2094
2094
+ if (typeof module !== 'undefined' && module.exports) {
2095
2095
+ module.exports = {
@@ -2099,12 +2099,12 @@ index 0000000000000000000000000000000000000000..a9c5d52a2d5dde2a22ba5f03e54abf3b
2099
2099
+ PriorityQueue: require('./PriorityQueue.js')
2100
2100
+ };
2101
2101
+ }
2102
- diff --git a/.history/lib/index_20231205115515.js b/.history/lib/index_20231205115515.js
2103
- new file mode 100644
2104
- index 0000000000000000000000000000000000000000..b5a7a8cc312a1c0468259231a06641211c8e11cc
2105
- --- /dev/null
2106
- +++ b/.history/lib/index_20231205115515.js
2107
- @@ -0,0 +1,9 @@
2102
+ diff --git a/.history/lib/index_20231205115515.js b/.history/lib/index_20231205115515.js
2103
+ new file mode 100644
2104
+ index 0000000000000000000000000000000000000000..b5a7a8cc312a1c0468259231a06641211c8e11cc
2105
+ --- /dev/null
2106
+ +++ b/.history/lib/index_20231205115515.js
2107
+ @@ -0,0 +1,9 @@
2108
2108
+
2109
2109
+ if (module.exports) {
2110
2110
+ module.exports = {
@@ -2114,35 +2114,35 @@ index 0000000000000000000000000000000000000000..b5a7a8cc312a1c0468259231a0664121
2114
2114
+ PriorityQueue: require('./PriorityQueue.js')
2115
2115
+ };
2116
2116
+ }
2117
- diff --git a/lib/DBSCAN.js b/lib/DBSCAN.js
2118
- index 433b454c8d1e27ed951c7ba53052a4036e25f43d..54f8c4438faba26ebafd22ec9d7a228f6dfdef94 100644
2119
- --- a/lib/DBSCAN.js
2120
- +++ b/lib/DBSCAN.js
2121
- @@ -231,6 +231,6 @@ DBSCAN.prototype._euclideanDistance = function(p, q) {
2117
+ diff --git a/lib/DBSCAN.js b/lib/DBSCAN.js
2118
+ index 433b454c8d1e27ed951c7ba53052a4036e25f43d..54f8c4438faba26ebafd22ec9d7a228f6dfdef94 100644
2119
+ --- a/lib/DBSCAN.js
2120
+ +++ b/lib/DBSCAN.js
2121
+ @@ -231,6 +231,6 @@ DBSCAN.prototype._euclideanDistance = function(p, q) {
2122
2122
return Math.sqrt(sum);
2123
2123
};
2124
2124
2125
2125
- if (typeof module !== 'undefined' && module.exports) {
2126
2126
+ if (module.exports) {
2127
2127
module.exports = DBSCAN;
2128
2128
}
2129
- diff --git a/lib/KMEANS.js b/lib/KMEANS.js
2130
- index 21646f447f20fa710a7d855e597a9b9f9643b2f5..a6fab6e802b5ce7c9f7f8ac4183faff29181b22d 100644
2131
- --- a/lib/KMEANS.js
2132
- +++ b/lib/KMEANS.js
2133
- @@ -208,6 +208,6 @@ KMEANS.prototype.distance = function(p, q) {
2129
+ diff --git a/lib/KMEANS.js b/lib/KMEANS.js
2130
+ index 21646f447f20fa710a7d855e597a9b9f9643b2f5..a6fab6e802b5ce7c9f7f8ac4183faff29181b22d 100644
2131
+ --- a/lib/KMEANS.js
2132
+ +++ b/lib/KMEANS.js
2133
+ @@ -208,6 +208,6 @@ KMEANS.prototype.distance = function(p, q) {
2134
2134
return Math.sqrt(sum);
2135
2135
};
2136
2136
2137
2137
- if (typeof module !== 'undefined' && module.exports) {
2138
2138
+ if (module.exports) {
2139
2139
module.exports = KMEANS;
2140
2140
}
2141
- diff --git a/lib/OPTICS.js b/lib/OPTICS.js
2142
- index 867e081630c3a4ee2d2615d902642e11249f4981..1a2f86f294a6ee1589272cb7d20fe4fa697cc62c 100644
2143
- --- a/lib/OPTICS.js
2144
- +++ b/lib/OPTICS.js
2145
- @@ -3,7 +3,7 @@
2141
+ diff --git a/lib/OPTICS.js b/lib/OPTICS.js
2142
+ index 867e081630c3a4ee2d2615d902642e11249f4981..1a2f86f294a6ee1589272cb7d20fe4fa697cc62c 100644
2143
+ --- a/lib/OPTICS.js
2144
+ +++ b/lib/OPTICS.js
2145
+ @@ -3,7 +3,7 @@
2146
2146
* @requires ./PriorityQueue.js
2147
2147
*/
2148
2148
@@ -2151,31 +2151,31 @@ index 867e081630c3a4ee2d2615d902642e11249f4981..1a2f86f294a6ee1589272cb7d20fe4fa
2151
2151
var PriorityQueue = require('./PriorityQueue.js');
2152
2152
}
2153
2153
2154
- @@ -264,6 +264,6 @@ OPTICS.prototype._euclideanDistance = function(p, q) {
2154
+ @@ -264,6 +264,6 @@ OPTICS.prototype._euclideanDistance = function(p, q) {
2155
2155
return Math.sqrt(sum);
2156
2156
};
2157
2157
2158
2158
- if (typeof module !== 'undefined' && module.exports) {
2159
2159
+ if (module.exports) {
2160
2160
module.exports = OPTICS;
2161
2161
}
2162
- diff --git a/lib/PriorityQueue.js b/lib/PriorityQueue.js
2163
- index beda2305bf1585d672f92c93a55391c393dac43d..23be5a7061c311446a76fca1e17fd68539738648 100644
2164
- --- a/lib/PriorityQueue.js
2165
- +++ b/lib/PriorityQueue.js
2166
- @@ -175,6 +175,6 @@ PriorityQueue.prototype._insertAt = function(ele, priority, index) {
2162
+ diff --git a/lib/PriorityQueue.js b/lib/PriorityQueue.js
2163
+ index beda2305bf1585d672f92c93a55391c393dac43d..23be5a7061c311446a76fca1e17fd68539738648 100644
2164
+ --- a/lib/PriorityQueue.js
2165
+ +++ b/lib/PriorityQueue.js
2166
+ @@ -175,6 +175,6 @@ PriorityQueue.prototype._insertAt = function(ele, priority, index) {
2167
2167
}
2168
2168
};
2169
2169
2170
2170
- if (typeof module !== 'undefined' && module.exports) {
2171
2171
+ if (module.exports) {
2172
2172
module.exports = PriorityQueue;
2173
2173
}
2174
- diff --git a/lib/index.js b/lib/index.js
2175
- index a9c5d52a2d5dde2a22ba5f03e54abf3b68f796d8..b5a7a8cc312a1c0468259231a06641211c8e11cc 100644
2176
- --- a/lib/index.js
2177
- +++ b/lib/index.js
2178
- @@ -1,5 +1,5 @@
2174
+ diff --git a/lib/index.js b/lib/index.js
2175
+ index a9c5d52a2d5dde2a22ba5f03e54abf3b68f796d8..b5a7a8cc312a1c0468259231a06641211c8e11cc 100644
2176
+ --- a/lib/index.js
2177
+ +++ b/lib/index.js
2178
+ @@ -1,5 +1,5 @@
2179
2179
2180
2180
- if (typeof module !== 'undefined' && module.exports) {
2181
2181
+ if (module.exports) {
0 commit comments