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-2009 Soeren Sonnenburg 00008 * Copyright (C) 1999-2009 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 00021 class CGHMM : public CDistribution 00022 { 00023 public: 00025 CGHMM(); 00026 virtual ~CGHMM(); 00027 00032 virtual bool train(); 00033 00038 virtual int32_t get_num_model_parameters(); 00039 00045 virtual float64_t get_log_model_parameter(int32_t param_num); 00046 00053 virtual float64_t get_log_derivative(int32_t param_num, int32_t num_example); 00054 00060 virtual float64_t get_log_likelihood_example(int32_t num_example); 00061 }; 00062 #endif