[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
chooses between default type and type supplied More...
#include <vigra/random_forest/rf_common.hxx>
chooses between default type and type supplied
This is an internal class and you shouldn't really care about it. Just pass on used in RandomForest.learn() Usage:
// example: use container type supplied by user or ArrayVector if // rf_default() was specified as argument; template<class Container_t> void do_some_foo(Container_t in) { typedef ArrayVector<int> Default_Container_t; Default_Container_t default_value; Value_Chooser<Container_t, Default_Container_t> choose(in, default_value); // if the user didn't care and the in was of type // RF_DEFAULT then default_value is used. do_some_more_foo(choose.value()); } Value_Chooser choose_val<Type, Default_Type> *
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|