65 float p_score, n_score;
70 for (p.
begin(f); p; ++p)
77 if (p->v.type() != val_type_feats)
79 cerr <<
"Not a features in val\n";
82 p_score = feats(p->v)->F(field, 1.0);
83 n_score = feats(n->v)->F(field, 1.0);
84 if (n_score > p_score)
float getFloat(const EST_Features &f, const EST_String name, float def, EST_feat_status &status)
Return the values as a float.
#define VAL_REGISTER_FUNCPTR(NAME, CLASS)
EST_String getString(const EST_Features &f, const EST_String name, const EST_String &def, EST_feat_status &status)
Return the value as a string.
void begin(Container &over)
Set the iterator ready to run over this container.
int getInteger(const EST_Features &f, const EST_String name, int def, EST_feat_status &status)
Return the values as a float.
Templated Key-Value Item. Serves as the items in the list of the EST_TKVL class.
getString getInteger void value_sort(EST_Features &f, const EST_String &field)
defineGetFunction(EST_Features, val, EST_Val, getVal) defineGetFunction(EST_Features
EST_Val getVal(const EST_Features &f, const EST_String name, const EST_Val &def, EST_feat_status &status)
Return the value as an EST_Val.