ConditionalProbabilityTreeNodeData.h

Go to the documentation of this file.
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 CONDITIONALPROBABILITYTREENODEDATA_H__
00012 #define CONDITIONALPROBABILITYTREENODEDATA_H__
00013 
00014 namespace shogun
00015 {
00019 struct ConditionalProbabilityTreeNodeData
00020 {
00022     int32_t label;
00024     float64_t p_right;
00025 
00027     ConditionalProbabilityTreeNodeData(): label(-1), p_right(0) 
00028     {
00029     }
00030 
00032     static void print_data(const ConditionalProbabilityTreeNodeData &data)
00033     {
00034         SG_SPRINT("label=%d\n", data.label);
00035     }
00036 };
00037 
00038 
00039 } /* shogun */ 
00040 
00041 #endif /* end of include guard: CONDITIONALPROBABILITYTREENODEDATA_H__ */
00042 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation