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

Generic_Potts Class Reference

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

#include <Generic_Potts.hpp>

Inheritance diagram for Generic_Potts:

MRF Random_Field List of all members.

Public Member Functions

 Generic_Potts ()
 Default constructor.
 Generic_Potts (uint k)
 Constructor.
 Generic_Potts (Neighborhood_System *nhs)
 Constructor.
 Generic_Potts (Neighborhood_System *nhs, uint k)
 Constructor.
 Generic_Potts (Neighborhood_System *nhs, uint k, vector< double > const &alph, vector< double > const &bet)
 Constructor.
 ~Generic_Potts ()
 Default destructor.
void DeleteAll ()
 Free all memory used by the object.
void Get_Alpha (vector< double > &a)
 Get the singleton potentail.
void Get_Beta (vector< double > &b)
 Get the pair potentials.
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 given the fuzzy classifictaion.
void Update_Gradient (vector< double > const &Q)
 Update the gradient.
void Read_Params (istream &is)
 Read the model parameters from the 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 ()
 Print some info on the model.

Detailed Description

Author:
Lemine Abdallahi
Date:
Aug. 2005
A potts Hidden Markov Random Field model with external field Alpha , with an interaction matrix parameter beta. This model is used by JB.


Member Function Documentation

double Generic_Potts::H uint  i,
uint  k,
vector< uint > const &  Z
[virtual]
 

Compute $ H_ik(Z) = \alpha_k + \sum_{j~i} \sum_m \beta{km} 1_{Z_j=m} $

Reimplemented from MRF.

double Generic_Potts::Hmf uint  i,
uint  k
[virtual]
 

Compute $ H_ik(\tilde Z) = \alpha_k + \sum_{j~i} \sum_m \beta_{km} \tilde Z_{jm} $

with $ \tilde Z = Z^{mf} $

Reimplemented from MRF.

void Generic_Potts::Info  )  [virtual]
 

Print some info on the model.

Reimplemented from MRF.

void Generic_Potts::Read_Params istream &  is  )  [virtual]
 

Read the model parameters from the stream is.

Reimplemented from MRF.

void Generic_Potts::Write_Params ostream &  os  )  [virtual]
 

Write the model parameters to the stream os.

Reimplemented from MRF.


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