Changeset 10252:ec524648dbaa in orange
- Timestamp:
- 02/15/12 16:16:42 (15 months ago)
- Branch:
- default
- File:
-
- 1 edited
-
source/orange/tdidt_simple.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
source/orange/tdidt_simple.cpp
r10206 r10252 785 785 int i; 786 786 string lbracket, rbracket; 787 string split_string; 787 788 SimpleTreeNode *node; 789 790 ss.exceptions(istream::failbit); 788 791 789 792 ASSERT(node = (SimpleTreeNode *)malloc(sizeof *node)); 790 793 ss >> lbracket >> node->type >> node->children_size; 791 794 795 792 796 if (node->type != PredictorNode) 793 ss >> node->split_attr >> node->split; 797 { 798 ss >> node->split_attr; 799 800 /* Read split into a string and use strtod to parse it. 801 * istream sometimes (on some platforms) seems to have problems 802 * reading formated floats. 803 */ 804 ss >> split_string; 805 node->split = float(strtod(split_string.c_str(), NULL)); 806 } 794 807 795 808 if (node->children_size) {
Note: See TracChangeset
for help on using the changeset viewer.
