Browse code

Classes must reside in Main Dir!

git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@164 83ab2cfd-5345-466c-8aeb-2b2739fb922d

Christoph Budziszewski authored on18/03/2009 14:58:00
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,6 @@
1
+function value = lm_getValue(mapping,classLabel)
2
+if mapping.LabelToValue.containsKey(classLabel)
3
+    value = mapping.LabelToValue.get(classLabel);   
4
+else
5
+     error('LabelMap:getValue:noSuchLabel','this Mapping does not contain a Label ''%s''',classLabel);
6
+end
0 7
\ No newline at end of file
Browse code

moved stuff, fixing plotDecode

git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@151 83ab2cfd-5345-466c-8aeb-2b2739fb922d

Christoph Budziszewski authored on16/03/2009 14:41:06
Showing1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,6 +0,0 @@
1
-function value = lm_getValue(mapping,classLabel)
2
-if mapping.LabelToValue.containsKey(classLabel)
3
-    value = mapping.LabelToValue.get(classLabel);   
4
-else
5
-     error('LabelMap:getValue:noSuchLabel','this Mapping does not contain a Label ''%s''',classLabel);
6
-end
7 0
\ No newline at end of file
Browse code

refactored LabelMap getter with lm prefix.

git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@144 83ab2cfd-5345-466c-8aeb-2b2739fb922d

Christoph Budziszewski authored on06/03/2009 12:49:18
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,6 @@
1
+function value = lm_getValue(mapping,classLabel)
2
+if mapping.LabelToValue.containsKey(classLabel)
3
+    value = mapping.LabelToValue.get(classLabel);   
4
+else
5
+     error('LabelMap:getValue:noSuchLabel','this Mapping does not contain a Label ''%s''',classLabel);
6
+end
0 7
\ No newline at end of file