summaryrefslogtreecommitdiff
path: root/macros/classifierToList.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/classifierToList.sci')
-rw-r--r--macros/classifierToList.sci10
1 files changed, 10 insertions, 0 deletions
diff --git a/macros/classifierToList.sci b/macros/classifierToList.sci
new file mode 100644
index 0000000..98fad46
--- /dev/null
+++ b/macros/classifierToList.sci
@@ -0,0 +1,10 @@
+function classifier_list = classifierToList(classifier)
+ /// classifier is a struct
+
+ if ~isstruct(classifier)
+ error(msprintf("Structure of classifier required\n"));
+ end
+
+ classifier_list = list("classifier",classifier.ClassifierLocation, classifier.BagofFeaturesLocation, classifier.Description);
+
+endfunction