Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

External_Potts Class Reference

A class representing a Potts MRF Model with an external field. More...

#include <External_Potts.hpp>

Inheritance diagram for External_Potts:

MRF Random_Field List of all members.

Public Member Functions

 External_Potts ()
 Default constructor.
 External_Potts (Neighborhood_System *nhs, uint k)
 Constructor.
 External_Potts (Neighborhood_System *nhs, uint k, vector< double > const &alph, double bet)
 Constructor.
 ~External_Potts ()
 Default destructor.
void DeleteAll ()
 Free all allocated memory.
void Get_Alpha (vector< double > &alpha)
 Get the singleton potentail.
double Get_Beta ()
 Get the pair potential.
void Get_Beta (vector< double > &beta)
 Get the pair potential.
double H (uint i, uint k, vector< uint > const &Z)
 Hamiltonian.
double Hmf (uint i, uint k)
 Mean-field Hamiltonian.
void ReadFromFile (string filename)
 Read the object definition from a file.
void WriteToFile (string filename)
 Write the object definition from a file.
void Gradient (vector< double > const &tik, vector< double > &Q)
 Compute the gradient.
void Update_Gradient (vector< double > const &Q)
 Update model parameters using the current value of the gradient.
void Read_Params (istream &is)
 Read all parameters from a stream.
void Write_Params (ostream &os)
 Write the model parameters to the stream os.
uint Degrees_Of_Freedom ()
 Number of free parameters.
void Info ()
 Display info on the model.

Detailed Description

Author:
Lemine Abdallahi
Date:
Aug. 2005
A potts Hidden Markov Random Field model with external field V , with one parameter beta.


The documentation for this class was generated from the following files:
Generated on Thu Jan 12 11:55:00 2006 for NEM by  doxygen 1.4.4