forked from CN-TU/mdcstream-matlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mdcstream_example.m
30 lines (24 loc) · 1.32 KB
/
mdcstream_example.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
warning on
warning('backtrace', 'off');
addpath(genpath('config_build/src'));
addpath(genpath('mdcstream/src'));
addpath(genpath('display'));
addpath(genpath('data_provider'));
fprintf('Creating MDCGen dataset ... \n');
p.seed = 1;
config.seed = 15;
config.nDatapoints = 3000;
config.nDimensions = 2;
config.nClusters = 3;
config.nOutliers = 200;
config.distribution = 0;
config.compactness = [0.02, 0.05, 0.1];
data = mdcgen( p );
fprintf('Creating MDCStream dataset ... \n');
config.displacement = 0.1;
config.displacementRate = 0.1;
data = mdcstream(data, config);
fprintf('Displaying dataset (last datapoints)... \n');
displayRecent(data);
%fprintf('Displaying dataset (all datapoints)... \n');
%displayStream(data);