Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

External_Field_Potts Class Reference

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

#include <External_Field_Potts.hpp>

Inheritance diagram for External_Field_Potts:

MRF List of all members.

Public Methods

 External_Field_Potts ()
 Default constructor.

 External_Field_Potts (Neighborhood_System *nhs, uint k)
 Constructor.

 External_Field_Potts (Neighborhood_System *nhs, uint k, vector< double > const &V1, double bet)
 Constructor.

 ~External_Field_Potts ()
 Default destructor.

void DeleteAll ()
 Free all allocated memory.

void Get_V (vector< double > &v)
 Get the singleton potentail.

double Get_Beta ()
 Get the pair potential.

void Gradient (vector< double > const &tik, vector< double > &Q)
 Compute the gradient.

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< uint > const &Z, vector< double > &Q)
 Compute the gradient.

void Gradient_update (vector< double > const &Q)
 Update mdoel parameteres using the current value of the gradient.

void Init_Gradient_Descent ()
 Initialize the gradient descent.

void Finalize_Gradient_Descent ()
 Finalize the gradient descent.

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 Oct 27 17:58:47 2005 for NEM by doxygen1.2.18