diff options
Diffstat (limited to 'macros/classifierToList.sci')
-rw-r--r-- | macros/classifierToList.sci | 10 |
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 |