|
Public Methods |
virtual | ~Conditional_MRF () |
| Destructor.
|
void | Get_subK (vector< uint > &subk) |
| Get the subclass vector.
|
uint | Get_K () |
| Get the number of classess/colors ...
|
uint | Get_L () |
| 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< double > const &PG_Y, vector< uint > &Z) |
| Simulate the Conditional_MRF, one iteration. Gibbs sampler.
|
void | Simulate (uint nbiter, vector< double > const &PG_Y, vector< uint > &Z) |
| Simulate the Conditional_MRF, Gibbs sampler.
|
void | Simulate (uint nbiter, vector< uint > const &Y, vector< uint > &Z) |
| Simulate the Conditional_MRF, Gibbs sampler.
|
virtual double | H (uint i, uint l, uint k, vector< uint > const &Z) |
| Hamiltonian.
|
virtual double | Hmf (uint i, uint l, uint k) |
| Mean-field hamiltonian,
.
|
void | Compute_PG (uint i, vector< double > const &PG_Yi, vector< uint > const &Z, vector< double > &PG) |
| Compute class conditional probabilities at site i given father probabilities PG_Yi and the neighbors Z.
|
void | Compute_PG_cond (uint i, uint l, vector< uint > const &Z, vector< double > &PG) |
| Compute class conditional probabilities at site i given father class p and the neighbors Z.
|
void | Compute_PGmf (vector< double > const &PG_Y, vector< double > &P_G) |
| Compute conditional probabilities given father probabilities PG_Y and the neighbors Z. mean-field appoximation.
|
void | Compute_PGmf_cond (uint i, uint l, vector< double > &PG) |
| Compute conditional probabilities given father class p and the neighbors Z. mean-field appoximation.
|
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
.
|