forked from agonopol/condense
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.m
43 lines (30 loc) · 1.04 KB
/
test.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
31
32
33
34
35
36
37
38
39
40
41
42
43
%% Main function to generate tests
function tests = test
tests = functiontests(localfunctions);
end
%% Test Functions
function TestRetina(testCase)
[data, channels] = retina('./test/dec24_sdata_raw.mat');
options.destination = './test/output/retina//';
[dest, ~, ~] = fileparts(options.destination);
mkdir_if_not_exists(dest);
contractor = ContractionClustering(data, channels, options);
contractor.contract();
end
%% Optional file fixtures
function setupOnce(testCase) % do not change function name
addpath('./test');
end
%% Optional fresh fixtures
function setup(testCase) % do not change function name
options = Options();
options.clusterAssignmentMethod = 'none';
options.frequencyMergingEpsilonClusters = 'uponMetastability'; %always,uponMetastability%
options.controlSigmaMethod = 'nuclearNormStabilization';
options.numDiffusionSteps = 3;
end
function teardown(testCase) % do not change function name
clc;
close all force;
close all hidden;
end