00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 3 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * Written (W) 1999-2008 Soeren Sonnenburg 00008 * Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society 00009 */ 00010 00011 #ifndef _CGHMM_H___ 00012 #define _CGHMM_H___ 00013 00014 #include "lib/Mathematics.h" 00015 #include "features/Features.h" 00016 #include "distributions/Distribution.h" 00017 00018 00020 class CGHMM : public CDistribution 00021 { 00022 public: 00024 CGHMM(); 00025 ~CGHMM(); 00026 00031 virtual bool train(); 00032 00037 virtual INT get_num_model_parameters(); 00038 00044 virtual DREAL get_log_model_parameter(INT param_num); 00045 00052 virtual DREAL get_log_derivative(INT param_num, INT num_example); 00053 00059 virtual DREAL get_log_likelihood_example(INT num_example); 00060 }; 00061 #endif