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

/home/mistis/jblanche/DEV/NEM/include/HighDim_Normal_Mix.hpp

00001 #define __cplusplus__
00002 #ifndef __HDNORMMIX__
00003 #define __HDNORMMIX__
00004 
00005 #include<iostream>
00006 #include<istream>
00007 #include<fstream>
00008 #include<string>
00009 #include<vector>
00010 #include<sstream>
00011 #include <cmath>
00012 
00013 using namespace std;
00014 
00015 #include <HighDim_Normal.hpp>
00016 #include <IID_Mixture.hpp>
00017 
00028 class HighDim_Normal_Mix : public IID_Mixture{
00029 
00030   vector<HighDim_Normal *> Gaussians;
00031 
00032   
00033 public :
00034   
00036   HighDim_Normal_Mix();
00037 
00039   HighDim_Normal_Mix(uint k, uint dim);
00040 
00042   HighDim_Normal_Mix(uint k, vector<HighDim_Normal *> const &  gauss);
00043 
00045   ~HighDim_Normal_Mix();
00046 
00048   void DeleteAll();
00049     
00051   uint Get_D();
00052 
00054   uint Degrees_Of_Freedom();
00055 
00057   void Simulate(uint N, Data *dat);
00058 
00060   double Density(vector<double> const &  X, uint k);
00061 
00062   
00064   void Update_Gaussians(Spatial_Data *spatd, vector<double>  const &  tik);
00065 
00066   // I/O Functions
00068   void ReadFromFile(string filename); 
00070   void WriteToFile(string filename); 
00071 
00073   void Info();
00074 
00076   void EM_E(Spatial_Data *spatd, vector<double> & tik);
00078   void EM_M(Spatial_Data *spatd, vector<double>  const &  tik);
00079   
00080   
00082   void NEM_E(Spatial_Data *spatd, vector<double> const &  beta, vector<double> & tik);
00084   void NEM_M(Spatial_Data *spatd, vector<double>  const &  tik);
00085 
00086 };
00087 
00088 
00089 #endif

Generated on Tue Nov 8 14:55:44 2005 for NEM by doxygen1.2.18