class Domain : public NetworkModel A domain is the HUGIN representation of a network
A domain is the HUGIN representation of a network. It is one of the principal structures in HUGIN. It must be constructed before any nodes belonging to the network.
throw(ExceptionHugin)@return Standard C++ Library pair<int,int>.
Also note that when you delete a domain, Hugin does not
attempt to delete the data pointed to by the user data
slot. It is the responsibility of the user.
The initial value of the grain size parameter is 10000.
Domain(const std::string& filename) throw( ExceptionHugin )
Domain(const std::string& filename, ParseListener *pl) throw(ExceptionHugin)
pl - Pointer to object derived from class ParseListener.
virtual ~Domain() throw()
void adapt() throw(HAPI::ExceptionHugin)
double approximate(double epsilon) throw( HAPI::ExceptionHugin )
bool cgEvidenceIsPropagated() const throw( HAPI::ExceptionHugin )
void compile() throw( HAPI::ExceptionHugin )
double compress() throw( HAPI::ExceptionHugin )
bool equilibriumIs(Equilibrium eq) const throw( HAPI::ExceptionHugin )
bool evidenceIsPropagated() const throw( HAPI::ExceptionHugin )
bool evidenceModeIs(EvidenceMode ev) const throw( HAPI::ExceptionHugin )
double getApproximationConstant() const throw( HAPI::ExceptionHugin )
std::string getAttribute(std::string& key) const throw( HAPI::ExceptionHugin )
long getCaseCount(long config)
unsigned int getConcurrencyLevel() const throw( HAPI::ExceptionHugin )
double getConflict() const throw( HAPI::ExceptionHugin )
NodeList getEliminationOrder() const throw( HAPI::ExceptionHugin )
std::string getFileName() throw( HAPI::ExceptionHugin )
unsigned int getGrainSize() const throw( HAPI::ExceptionHugin )
JunctionTreeList getJunctionTrees() const throw( HAPI::ExceptionHugin )
double getLogLikelihood() throw(HAPI::ExceptionHugin)
double getLogLikelihoodTolerance() throw(HAPI::ExceptionHugin)
double getSignificanceLevel() throw(HAPI::ExceptionHugin)
double getLogNormalizationConstant() throw(HAPI::ExceptionHugin)
Table* getMarginal(const NodeList& nodes) const throw( HAPI::ExceptionHugin )
int getMaxNumberOfEMIterations() throw(HAPI::ExceptionHugin)
int getMaxNumberOfSeparators() throw(HAPI::ExceptionHugin)
Node* getNodeByName(const std::string &) const throw( HAPI::ExceptionHugin )
NodeList getNodes() const throw( HAPI::ExceptionHugin )
std::pair <unsigned int,unsigned int> getNodeSize() throw(ExceptionHugin)
double getNormalizationConstant() const throw( ExceptionHugin )
long getNumberOfCases() throw(HAPI::ExceptionHugin)
bool hasAttribute(const std::string& key) throw(ExceptionHugin)
bool hasEvidenceToPropagate() const throw(ExceptionHugin)
bool hasTablesToPropagate() const throw( ExceptionHugin )
void initialize() throw( ExceptionHugin )
void learnStructure() throw( ExceptionHugin )
bool isCompiled() const throw( ExceptionHugin )
bool isCompressed() const throw( ExceptionHugin )
void learnTables() throw(HAPI::ExceptionHugin)
bool likelihoodIsPropagated() const throw( ExceptionHugin )
long newCase() throw(HAPI::ExceptionHugin)
void propagate(Equilibrium eq = H_EQUILIBRIUM_SUM, EvidenceMode ev = H_MODE_NORMAL) throw( ExceptionHugin )
ev - EvidenceMode type. Defaults to EV_NORMAL
void resetInferenceEngine() throw( ExceptionHugin )
void retractFindings() throw( ExceptionHugin )
void save(const std::string& filename, Endian format = H_ENDIAN_HOST) throw( ExceptionHugin )
format - Byte-order in the saved file.
void saveToMemory() throw( ExceptionHugin )
void setAttribute(std::string& key, std::string& value) throw(ExceptionHugin)
value - A Standard C++ Library string.
void setCaseCount(long config, double count) throw(HAPI::ExceptionHugin)
count - double.
void setConcurrencyLevel(unsigned int level) throw( HAPI::ExceptionHugin )
void setGrainSize(unsigned int size) throw( HAPI::ExceptionHugin )
void setLogFile(FILE* log) throw( HAPI::ExceptionHugin )
void setLogLikelihoodTolerance(double tolerance) throw(HAPI::ExceptionHugin)
void setSignificanceLevel(double significancelevel) throw(HAPI::ExceptionHugin)
void setMaxNumberOfEMIterations(int iterations) throw(HAPI::ExceptionHugin)
void setMaxNumberOfSeparators(int separators) throw(HAPI::ExceptionHugin)
void setNodeSize(unsigned int width, unsigned int height) throw(ExceptionHugin)
height - long
void setNumberOfCases(long number) throw(HAPI::ExceptionHugin)
void setUserData(void *data) throw(HAPI::ExceptionHugin)
void simulate() throw( ExceptionHugin )
void triangulate(TriangulationMethod tm = H_TM_FILL_IN_WEIGHT) throw(ExceptionHugin)
void triangulateWithOrder(const NodeList& order) throw( ExceptionHugin )
void uncompile() throw( ExceptionHugin )
void writeNet(const std::string& filename) throw(ExceptionHugin)
void saveAsNet(const std::string& filename) throw(ExceptionHugin)
void generateTables( ) throw(ExceptionHugin)
void seedRandom( unsigned long seed ) throw( ExceptionHugin )
std::vector <Attribute*> getAttributes() throw( ExceptionHugin )
void saveCase(const std::string& filename) throw(ExceptionHugin)
void parseCase(const std::string& filename, ParseListener* pl) throw(ExceptionHugin)
parseListener - the ParseListener used for handling
parse errors.
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de