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

Potts Class Reference

A class representing a classical Potts MRF Model. More...

#include <Potts.hpp>

Inheritance diagram for Potts:

MRF Random_Field List of all members.

Public Member Functions

 Potts ()
 default constructor
 Potts (uint k)
 Constructor.
 Potts (Neighborhood_System *nhs, uint k)
 Constructor.
 Potts (Neighborhood_System *nhs, uint k, double bet)
 Constructor.
 ~Potts ()
 default destructor
void DeleteAll ()
 Free all allocated memory.
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 parameteres using the current value of the gradient.
void Read_Params (istream &is)
 Read all parameters from a stream is.
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 without external field, with one parameter beta.


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