|
Public Methods |
virtual | ~Possibility_MRF () |
| Destructor.
|
void | Get_subK (vector< uint > &subk) |
| Get the subclass vector.
|
uint | Get_K () |
| Get the number of classess/colors ...
|
uint | Get_P () |
| Get the total number of possibilities.
|
uint | Get_N () |
| Get the number of sites.
|
void | Set_Y (vector< uint > const &y) |
| Set Y.
|
void | Simulate (vector< uint > &Z) |
| Simulate the Possibility_MRF, one iteration. Gibbs sampler.
|
void | Simulate (uint nbiter, vector< uint > &Z) |
| Simulate the Possibility_MRF, Gibbs sampler.
|
virtual double | H (uint i, uint k, vector< uint > const &Z) |
| Hamiltonian.
|
virtual double | Hmf (uint i, uint k) |
| Mean-field hamiltonian,
.
|
void | Compute_cond_probs (uint i, vector< uint > const &Z, vector< double > &probs) |
| Compute class conditional probabilities at site i given the neighbors.
|
void | Compute_PGmf (vector< double > &P_G) |
| Compute conditional probabilities at site i given the neighbors. mean-field appoximation.
|
double | PL (vector< uint > const &Z) |
| compute the pseudo-likelihood for data
|
void | Set_Zmf (vector< double > const &z) |
| Set the mean-field neighborhood,
.
|
void | Set_Zmf (vector< double > const &z, uint i) |
| Set the mean-field neighborhood,
at site
.
|
void | Get_Zmf (vector< double > &z) |
| Get the mean-field neighborhood,
.
|
void | Set_Z (vector< uint > const &z) |
| Set neighborhood
.
|
virtual void | Read_Params (istream &is) |
| Read the model parameters from the stream is.
|
virtual void | Write_Params (ostream &os) |
| Write the model parameters to the stream os.
|
virtual uint | Degrees_Of_Freedom () |
| Number of free parameters.
|
virtual void | Info () |
| Print some info on the model.
|
Protected Attributes |
Neighborhood_System * | NHS |
| Underlying neighborhood system.
|
vector< uint > | subK |
| vector of subclasses.
|
vector< double > | Z_mf |
| Mean field neighborhood
.
|
vector< uint > | Y |
| father class
|