fork download
  1. class CascadeClassifier{
  2.  
  3.  
  4. protected:
  5. struct _tree_branch_m;
  6. typedef char *Set_m;
  7. typedef _tree_branch_m *Tree_m;
  8. struct _tree_branch_m
  9. {
  10. short NodeType; /* 0=leaf 1=branch 2=cut 3=subset */
  11. short Leaf; /* most frequent class at this node */
  12. float Items, /* no of items at this node */
  13. *ClassDist, /* class distribution of items */
  14. Errors; /* no of errors at this node */
  15. short Tested; /* attribute referenced in test */
  16. short Forks; /* number of branches at this node */
  17. float Cut, /* threshold for continuous attribute */
  18. Lower, /* lower limit of soft threshold */
  19. Upper; /* upper limit ditto */
  20. Set_m *Subset; /* subsets of discrete values */
  21. Tree_m *Branch; /* Branch[x] = (sub)tree for outcome x */
  22. };
  23.  
  24.  
  25. virtual void ClassifyCase(Tree_m subtree, float Weight, float *LowClassSum, float *ClassSum);
  26.  
  27. };
  28.  
  29. void CascadeClassifier::ClassifyCase(Tree_m Subtree, float Weight, float *LowClassSum, float *ClassSum)
  30. {
  31. if ( ! Subtree->NodeType )//error
  32. {
  33.  
  34. }
  35.  
  36. }
  37.  
  38. int main() {}
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty