ClausalFeature Class Reference

Inheritance diagram for ClausalFeature:

RecursiveFeature Feature List of all members.

Public Member Functions

 ClausalFeature (const char *name=NULL)
virtual double computePartialDeriv (int fi, int wi, const Array< int > &grounding, Database *db)
virtual double computeLogValue (const Array< int > &grounding, Database *db)
virtual double computeValue (const Array< int > &grounding, Database *db)
virtual void setWeight (int idx, double weight)
virtual double getNorm (int idx)
void setWeightsFromExample (const Array< int > &grounding, Database *db, const Array< int > &queryPreds, int numWeights)
virtual GroundFeatureconstructGroundFeature (GroundRRF *rrf, const Array< int > &grounding, Database *db)
double getLogZ () const
virtual double getZ () const

Protected Member Functions

double computeLogValueRaw (const Array< int > &grounding, Database *db) const
double getChildValue (int childId, const Array< int > &grounding, Database *db) const

Protected Attributes

bool cachedZinvalid_
double cachedLogZ_
bool cachedValuesInvalid_
Array< double > cachedNormalizers_

Detailed Description

Definition at line 865 of file feature.h.


The documentation for this class was generated from the following files:
Generated on Sun Jun 7 11:55:22 2009 for Alchemy by  doxygen 1.5.1