Estimation C++DLL: adding Standard dev. to Prior.cc & .hh

time-shift
George Perendia 2010-05-25 17:53:58 +01:00
parent bb583d6cf6
commit 508422307e
2 changed files with 4 additions and 3 deletions

View File

@ -25,8 +25,8 @@
#include "Prior.hh"
Prior::Prior(Prior::pShape shape_arg, double mean_arg, double mode_arg, double lower_bound_arg, double upper_bound_arg, double fhp_arg, double shp_arg) :
shape(shape_arg), mean(mean_arg), mode(mode_arg), lower_bound(lower_bound_arg), upper_bound(upper_bound_arg), fhp(fhp_arg), shp(shp_arg)
Prior::Prior(Prior::pShape shape_arg, double mean_arg, double mode_arg, double standard_arg, double lower_bound_arg, double upper_bound_arg, double fhp_arg, double shp_arg) :
shape(shape_arg), mean(mean_arg), mode(mode_arg), standard(standard_arg), lower_bound(lower_bound_arg), upper_bound(upper_bound_arg), fhp(fhp_arg), shp(shp_arg)
{
}

View File

@ -41,12 +41,13 @@ public:
Inv_gamma_2 = 6 //Inverse gamma (type 2) density
};
Prior(Prior::pShape shape, double mean, double mode, double lower_bound, double upper_bound, double fhp, double shp);
Prior(Prior::pShape shape, double mean, double mode, double standard, double lower_bound, double upper_bound, double fhp, double shp);
virtual ~Prior();
const pShape shape;
const double mean;
const double mode;
const double standard;
const double lower_bound;
const double upper_bound;
/**