Lines Matching refs:re
110 static int part(Part_t* pt, Vcchar_t* data, size_t size, ssize_t* rfreq, double re)
112 static int part(pt, data, size, pos, rfreq, re)
117 double re; /* entropy of this dataset */
125 cost = pt->ctab + size*vclog(size) - re;
134 re = eupdate(re, rfreq, lfreq, 0);
142 re -= rfreq[b]*vclog(rfreq[b]);
145 re += rfreq[b]*vclog(rfreq[b]);
148 rc = pt->ctab + (size-p)*vclog(size-p) - re;
153 if(part(pt, data+p, size-p, rfreq, re) < 0)
159 eupdate(re, rfreq, lfreq, 1); /* retotal the frequencies */