/code_oth/prodc.m

http://research-code-base-animesh.googlecode.com/ · MATLAB · 58 lines · 13 code · 8 blank · 37 comment · 2 complexity · f3d524aa021de22bc022a043728aeb1e MD5 · raw file

  1. %PRODC Product combining classifier
  2. %
  3. % W = PRODC(V)
  4. % W = V*PRODC
  5. %
  6. % INPUT
  7. % V Set of classifiers trained on the same classes
  8. %
  9. % OUTPUT
  10. % W Product combiner
  11. %
  12. % DESCRIPTION
  13. % It defines the product combiner on a set of classifiers, e.g.
  14. % V=[V1,V2,V3] trained on the same classes, by selecting the class
  15. % which yields the highest value of the product of the classifier
  16. % outputs. This might also be used as A*[V1,V2,V3]*PRODC in which
  17. % A is a dataset to be classified.
  18. %
  19. % If it is desired to operate on posterior probabilities, then the
  20. % input classifiers should be extended like V = V*CLASSC.
  21. %
  22. % The base classifiers may be combined in a stacked way (operating
  23. % in the same feature space) by V = [V1,V2,V3,...] or in a parallel
  24. % way (operating in different feature spaces) by V = [V1;V2;V3;...].
  25. %
  26. % SEE ALSO
  27. % MAPPINGS, DATASETS, VOTEC, MAXC, MINC, MEDIANC, MEANC, AVERAGEC,
  28. % STACKED, PARALLEL
  29. %
  30. % EXAMPLES
  31. % See PREX_COMBINING.
  32. % Copyright: R.P.W. Duin, duin@ph.tn.tudelft.nl
  33. % Faculty of Applied Sciences, Delft University of Technology
  34. % P.O. Box 5046, 2600 GA Delft, The Netherlands
  35. % $Id: prodc.m,v 1.4 2003/10/09 09:31:08 bob Exp $
  36. function w = prodc(p1)
  37. prtrace(mfilename);
  38. type = 'prod'; % Define the operation processed by FIXEDCC.
  39. name = 'Product combiner'; % Define the name of the combiner.
  40. % This is a general procedure for all possible
  41. % calls of fixed combiners handled by FIXEDCC
  42. if nargin == 0
  43. w = mapping('fixedcc','combiner',{[],type,name});
  44. else
  45. w = fixedcc(p1,[],type,name);
  46. end
  47. if isa(w,'mapping'),
  48. w = setname(w,name);
  49. end
  50. return