1 #ifndef theplu_yat_statistics_negative_binomial_extended_mixture_ 2 #define theplu_yat_statistics_negative_binomial_extended_mixture_ 25 #include <yat/utility/MultiMinimizerDerivative.h> 26 #include <yat/utility/Vector.h> 34 class MultiMinimizerDerivative;
36 namespace statistics {
59 void add(
unsigned long int k,
double y);
87 double logL(
void)
const;
103 std::vector<std::pair<unsigned long int, double>> data_;
109 double pdf(
unsigned long int k,
double m,
double alpha)
const;
112 double p(
size_t i)
const;
114 double r(
size_t i)
const;
116 void init_fit(
size_t n);
127 Q(
const std::vector<std::pair<unsigned long int, double>>& data,
134 const std::vector<std::pair<unsigned long int, double>>& data_;
138 log_L(
double m,
double alpha,
unsigned long int k,
double y)
const;
142 calc_gradient(
double m,
double alpha,
unsigned long int k,
146 calculate_dp(
double p,
double r,
unsigned long int k)
const;
148 calculate_dr(
double p,
double r,
unsigned long int k)
const;
The Department of Theoretical Physics namespace as we define it.
const utility::Vector & alpha(void) const
void add(unsigned long int k, double y)
Add a data point.
const utility::Vector & m(void) const
This is the yat interface to GSL vector.
Definition: Vector.h:59
This is the yat interface to GSL vector.
Definition: VectorBase.h:55
void clear(void)
remove all data
Wrapper class around gsl_multimin_fdfminimizer in GSL.
Definition: MultiMinimizerDerivative.h:43
This is the mutable interface to GSL vector.
Definition: VectorMutable.h:56
const utility::Vector & tau(void) const
Interface to GSL matrix.
Definition: Matrix.h:104
Definition: NegativeBinomialExtendedMixture.h:49