-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDescriptor.m
43 lines (37 loc) · 1.58 KB
/
Descriptor.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
classdef Descriptor < handle
% Describes some information for a set of predictions, for example
% which sets of features were used or whether read messages were
% considered
properties
variables % cell vector of variables to predict
onlyUnread % true if only unread messages were considered
superSetName % name of super set of features (e.g. aggreate or individual signals
featureSets % sets of features, cell matrix with two columns, where first column is feature set name and second column a cell
% vector of individual features for the given set
repetitions % number of randomisation repetitions
warnings % warnings outputted by saveResults (if any)
end
methods
function obj = Descriptor(variables, onlyUnread, superSetName, featureSets, repetitions)
obj.variables = variables;
obj.onlyUnread = onlyUnread;
obj.superSetName = superSetName;
obj.featureSets = featureSets;
obj.repetitions = repetitions;
obj.warnings = {};
end
function outName = outName(self)
% returns string summarising object, for example
% Aggregate - only unread
outName = [self.superSetName '-' self.uString];
end
function string = uString(self)
% string for unread vs all messages
if self.onlyUnread
string = 'only unread';
else
string = 'all messages';
end
end
end
end