Public Member Functions | |
| RRF () | |
| ~RRF () | |
| void | load (istream &in, Domain *domain) |
| void | addRandomFeature (int numChildren, Array< int > queryPreds, Array< int > typeArity, Domain *domain) |
| void | addCompleteFeature (Array< int > typeArity, Domain *domain, const Array< int > &queryPreds, int numChildren) |
| double | getValue (Database *db) |
| double | getLogValue (Database *db) |
| double | getExactLikelihood (Database *db) |
| double | getExactConditionalLikelihood (Database *db, const Array< int > &queryPreds) |
| double | getLogPseudoLikelihood (Database *db, const Array< int > &queryPreds) |
| double | getLogPseudoLikelihood (Database *db, const Array< Predicate * > &queryPreds) |
| double | getWeightLogLikelihood (double sigmaSq) const |
| void | changedPredicate (const Predicate *pred, Database *db) |
| void | invalidateAll () |
| double | getExactZ (const Domain *domain) |
| double | getExactZ (const Domain *domain, const Array< int > &queryPreds, Database *origDb) |
| void | getCounts (Array< double > &counts, Database *db) |
| void | getPseudoCounts (Array< double > &counts, Database *db, Array< Predicate * > queryPreds) |
| void | setWeight (int idx, double wt) |
| double | getWeight (int idx) const |
| Feature * | getRoot () |
| Feature * | getFeature (int idx) |
| const Feature * | getFeature (int idx) const |
| Feature * | getFeature (const char *name) |
| const Feature * | getFeature (const char *name) const |
| int | getNumFeatures () const |
| int | getNumWeights () const |
| Array< Feature * > | getFeatureArray () |
Static Public Member Functions | |
| static RRF * | generateTwoLevel (Domain *domain) |
Protected Attributes | |
| Feature * | topFeature_ |
| int | maxFeatureId_ |
| Array< Feature * > | featureArray_ |
Definition at line 44 of file rrf.h.
1.5.1