Lines Matching refs:pidx
262 int w_nidx = w_root, pidx = -1, depth = 0; in addTree() local
269 node.parent = pidx; in addTree()
303 if( pidx >= 0 ) in addTree()
308 nodes[pidx].left = nidx; in addTree()
313 nodes[pidx].right = nidx; in addTree()
320 pidx = nidx; in addTree()
330 nidx = pidx; in addTree()
331 pidx = nodes[pidx].parent; in addTree()
1268 int nidx = root, pidx = -1, cv_n = params.getCVFolds(); in updateTreeRNC() local
1294 for( pidx = node->parent; pidx >= 0 && w->wnodes[pidx].right == nidx; in updateTreeRNC()
1295 nidx = pidx, pidx = w->wnodes[pidx].parent ) in updateTreeRNC()
1298 parent = &w->wnodes[pidx]; in updateTreeRNC()
1303 parent->alpha = ((fold >= 0 ? w->cv_node_risk[pidx*cv_n + fold] : parent->node_risk) in updateTreeRNC()
1308 if( pidx < 0 ) in updateTreeRNC()
1312 parent = &w->wnodes[pidx]; in updateTreeRNC()
1324 int cv_n = params.getCVFolds(), nidx = root, pidx = -1; in cutTree() local
1350 for( pidx = node->parent; pidx >= 0 && w->wnodes[pidx].right == nidx; in cutTree()
1351 nidx = pidx, pidx = w->wnodes[pidx].parent ) in cutTree()
1354 if( pidx < 0 ) in cutTree()
1357 nidx = w->wnodes[pidx].right; in cutTree()
1653 int nidx = root, pidx = 0, depth = 0; in writeTree() local
1669 for( pidx = node->parent; pidx >= 0 && nodes[pidx].right == nidx; in writeTree()
1670 nidx = pidx, pidx = nodes[pidx].parent ) in writeTree()
1673 if( pidx < 0 ) in writeTree()
1676 nidx = nodes[pidx].right; in writeTree()
1896 int i, n = (int)fn.size(), root = -1, pidx = -1; in readTree() local
1905 node.parent = pidx; in readTree()
1906 if( pidx < 0 ) in readTree()
1910 Node& parent = nodes[pidx]; in readTree()
1917 pidx = nidx; in readTree()
1920 while( pidx >= 0 && nodes[pidx].right >= 0 ) in readTree()
1921 pidx = nodes[pidx].parent; in readTree()