IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
vectorcomp_xornorm.m
Go to the documentation of this file.
1 %> Vector Comparer - Normalized Xor
2 %>
3 %> Measure of diversity. Vectors must be of same size.
4 %>
5 %> <h3>References</h3>
6 %> L. I. Kuncheva, Combining Pattern Classifiers: Methods and Algorithms. Wiley, 2004.
7 
9  methods(Access=protected)
10  function z = do_test(o, v1, v2)
11  z = xor(v1, v2)/numel(v1);
12  end;
13  end;
14 
15  methods
16  function o = vectorcomp_xornorm(o)
17  o.classtitle = 'Normalized Xor';
18  o.flag_params = 0;
19  end;
20  end;
21 end
Paired Vector Comparer base class.
Definition: vectorcomp.m:9