11 #ifndef _POSITIONAL_PWM_H__
12 #define _POSITIONAL_PWM_H__
58 int32_t num_param, int32_t num_example);
156 inline virtual const char*
get_name()
const {
return "PositionalPWM"; }
160 void register_params();
196 #endif //_POSITIONAL_PWM_H__
virtual SGMatrix< float64_t > get_pwm()
virtual float64_t get_log_derivative(int32_t num_param, int32_t num_example)
virtual const char * get_name() const
virtual float64_t get_mean()
virtual void set_sigma(float64_t sigma)
Base class Distribution from which all methods implementing a distribution are derived.
virtual float64_t get_log_model_parameter(int32_t num_param)
virtual int32_t get_num_model_parameters()
virtual float64_t get_log_likelihood_example(int32_t num_example)
virtual void set_mean(float64_t mean)
virtual float64_t get_sigma()
virtual SGMatrix< float64_t > get_scoring(int32_t d)
The class Features is the base class of all feature objects.
void compute_w(int32_t num_pos)
float64_t get_log_likelihood_window(uint8_t *window, int32_t len, float64_t pos)
virtual ~CPositionalPWM()
virtual void set_pwm(SGMatrix< float64_t > pwm)
void compute_scoring(int32_t max_degree)
virtual SGMatrix< float64_t > get_w()
virtual bool train(CFeatures *data=NULL)