1 #ifndef theplu_yat_statistics_negative_binomial_mixture_ 2 #define theplu_yat_statistics_negative_binomial_mixture_ 26 #include <yat/utility/Matrix.h> 27 #include <yat/utility/Vector.h> 35 class MultiMinimizerDerivative;
37 namespace statistics {
56 void add(
unsigned long int k,
unsigned long int n=1);
84 double logL(
void)
const;
89 double pdf(
unsigned long int k)
const;
94 double pdf(
unsigned long int k,
size_t i)
const;
110 std::map<unsigned long int, unsigned long int> count_;
119 double p(
size_t i)
const;
121 double r(
size_t i)
const;
123 void init_fit(
size_t n);
131 double pdf(
unsigned long int k,
double m,
double alpha)
const;
136 Q(
const std::map<unsigned long int, unsigned long int>& count,
143 std::map<unsigned long int, unsigned long int> count_;
146 double log_L(
double m,
double alpha,
unsigned long int k)
const;
150 calc_gradient(
double m,
double alpha,
unsigned long int k)
const;
152 double calculate_dp(
double p,
double r,
unsigned long int k)
const;
153 double calculate_dr(
double p,
double r,
unsigned long int k)
const;
const utility::VectorBase & tau(void) const
Definition: NegativeBinomialMixture.h:50
The Department of Theoretical Physics namespace as we define it.
const utility::VectorBase & alpha(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
double pdf(unsigned long int k) const
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::VectorBase & m(void) const
Interface to GSL matrix.
Definition: Matrix.h:104
void clear(void)
remove all data
void add(unsigned long int k, unsigned long int n=1)