1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 |
|
7 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
8 |
|
9 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | var Clusterer = function () {
|
15 | function Clusterer() {
|
16 | _classCallCheck(this, Clusterer);
|
17 | }
|
18 |
|
19 | _createClass(Clusterer, [{
|
20 | key: 'train',
|
21 |
|
22 | |
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | value: function train(X) {
|
30 | throw new Error('Method must be implemented child class.');
|
31 | }
|
32 |
|
33 | |
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 | }, {
|
42 | key: 'cluster',
|
43 | value: function cluster(X) {
|
44 | throw new Error('Method must be implemented child class.');
|
45 | }
|
46 | }]);
|
47 |
|
48 | return Clusterer;
|
49 | }();
|
50 |
|
51 | exports.default = Clusterer;
|
52 | module.exports = exports.default; |
\ | No newline at end of file |