00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 3 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * Written (W) 2012 Chiyuan Zhang 00008 * Copyright (C) 2012 Chiyuan Zhang 00009 */ 00010 00011 #ifndef RANDOMCONDITIONALPROBABILITYTREE_H__ 00012 #define RANDOMCONDITIONALPROBABILITYTREE_H__ 00013 00014 #include <shogun/multiclass/tree/ConditionalProbabilityTree.h> 00015 00016 namespace shogun 00017 { 00018 00021 class CRandomConditionalProbabilityTree: public CConditionalProbabilityTree 00022 { 00023 public: 00025 CRandomConditionalProbabilityTree() {} 00026 00028 virtual ~CRandomConditionalProbabilityTree() {} 00029 00031 virtual const char* get_name() const { return "RandomConditionalProbabilityTree"; } 00032 00033 protected: 00039 virtual bool which_subtree(node_t *node, SGVector<float32_t> ex); 00040 }; 00041 00042 } /* shogun */ 00043 00044 #endif /* end of include guard: RANDOMCONDITIONALPROBABILITYTREE_H__ */ 00045