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

Laplace_Mix Class Reference

A class representing a Laplace IID mixture. More...

#include <Laplace_Mix.hpp>

Inheritance diagram for Laplace_Mix:

IID_Mixture Seg_Model List of all members.

Public Methods

 Laplace_Mix ()
 Default constructor.

 Laplace_Mix (uint k, uint dim)
 another constructor

 Laplace_Mix (uint k, vector< Laplace * > const &lapl)
 Detailed constructor.

 ~Laplace_Mix ()
 Destructor.

void DeleteAll ()
 Free all used memory.

uint Get_D ()
 Get the dimension.

uint Degrees_Of_Freedom ()
void Init (Spatial_Data *spatd)
void Simulate (uint N, Data *dat)
 Simulate.

double Density (vector< double > const &X, uint k)
 Compute the density.

void Update_Laplacians (Spatial_Data *spatd, vector< double > const &tik)
 Update laplacians.

void ReadFromFile (string filename)
 read from a file

void WriteToFile (string filename)
 save in a file

void EM_E (Spatial_Data *spatd, vector< double > &tik)
 Step E of the EM algorithm.

void EM_M (Spatial_Data *spatd, vector< double > const &tik)
 Step M of the EM algorithm.

void NEM_E (Spatial_Data *spatd, vector< double > const &beta, vector< double > &tik)
 Step E of the NEM algorithm.

void NEM_M (Spatial_Data *spatd, vector< double > const &tik)
 Step M of the NEM algorithm.

void Info ()
 Display mdeol information.


Detailed Description

Author:
Lemine Abdallahi
Date:
Aug. 2005


Constructor & Destructor Documentation

Laplace_Mix::Laplace_Mix  
 

Default constructor

Laplace_Mix::Laplace_Mix uint    k,
uint    dim
 

Another constructor

Laplace_Mix::Laplace_Mix uint    k,
vector< Laplace * > const &    lapl
 

Detailed constructor

Laplace_Mix::~Laplace_Mix  
 

Destructor


Member Function Documentation

uint Laplace_Mix::Degrees_Of_Freedom   [virtual]
 

Number of free parameters ... useful for model selection.

Reimplemented from Seg_Model.

void Laplace_Mix::DeleteAll  
 

Free all memory used by the object.

double Laplace_Mix::Density vector< double > const &    X,
uint    k
[virtual]
 

Compute density at X in the class k, i.e. , f(X | mu_k, sigma_k)

Reimplemented from IID_Mixture.

void Laplace_Mix::EM_E Spatial_Data   spatd,
vector< double > &    tik
[virtual]
 

Step E of the EM algorithm

Reimplemented from IID_Mixture.

void Laplace_Mix::EM_M Spatial_Data   spatd,
vector< double > const &    tik
[virtual]
 

Step M of the EM algorithm

Reimplemented from IID_Mixture.

uint Laplace_Mix::Get_D  
 

Get the dimension

void Laplace_Mix::Info   [virtual]
 

Print some info on the model.

Abstract. Model-dependent.

Reimplemented from Seg_Model.

void Laplace_Mix::Init Spatial_Data   spatd
 

Initialize the mixture based on the dataset.

void Laplace_Mix::NEM_E Spatial_Data   spatd,
vector< double > const &    beta,
vector< double > &    tik
[virtual]
 

Step E of the NEM algorithm

Reimplemented from IID_Mixture.

void Laplace_Mix::NEM_M Spatial_Data   spatd,
vector< double > const &    tik
[virtual]
 

Step M of the NEM algorithm

Reimplemented from IID_Mixture.

void Laplace_Mix::ReadFromFile string    filename
 

read from a file

file format details :

void Laplace_Mix::Simulate uint    N,
Data   dat
 

Simulation procedure.

void Laplace_Mix::Update_Laplacians Spatial_Data   spatd,
vector< double > const &    tik
 

Update Laplacians

void Laplace_Mix::WriteToFile string    filename
 

save in a file


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 14:55:57 2005 for NEM by doxygen1.2.18