29 return -
log(2.*(x-1.));
45 return 1.0-0.5*
exp(-x);
53 double& wght= (
double&) _wght;
54 const double sqrt_tpi =
sqrt(2*
PI);
70 double* pai = a.
get_v() + 1;
71 double* pbi = b.
get_v() + 1;
73 for (
int i=1;i<=nvar;++i)
75 double chii = *(pchi->
get_v() + i);
76 double ah = *pai / chii;
77 double bl = *pbi / chii;
81 double diff=upper-lower;
110 double* pwj = w.
get_v() + i;
111 double* paj = a.
get_v() + i;
112 double* pbj = b.
get_v() + i;
114 for (
int j=i;j<=nvar;++j)
116 double tmp = y * *(pchj->
get_v() + i);
133 wght += in*
log(1./sqrt_tpi);
138 const dvector& b1,
dmatrix& ch,
const double& _wght,
double pprobe,
141 double& wght= (
double&) _wght;
142 const double sqrt_tpi =
sqrt(2*
PI);
162 for (
int i=1;i<=nvar;i++)
197 wght+=
log((1.0-pprobe)*
exp(-.5*y*y)/(sqrt_tpi*diff)
205 for (
int j=i;j<=nvar;j++)
207 double tmp=y*ch(j,i);
220 double& wght= (
double&) _wght;
234 for (
int i=1;i<=nvar;i++)
239 lower=
ffmax(-1.0,ah);
245 for (
int j=i;j<=nvar;j++)
247 double tmp=y*ch(j,i);
260 double& wght= (
double&) _wght;
275 for (
int i=1;i<=nvar;i++)
285 for (
int j=i;j<=nvar;j++)
287 double tmp=y*ch(j,i);
297 for (
int i=1;i<=nvar;i++)
307 for (
int j=i;j<=nvar;j++)
309 double tmp=y*ch3(j,i);
dvector bounded_multivariate_uniform(int nvar, const dvector &a1, const dvector &b1, dmatrix &ch, const double &lprob, random_number_generator &rng)
double cumd_exp(double x)
Vector of double precision numbers.
double inv_cumd_norm(const double &x)
Description not yet available.
double density_cauchy(const double &x)
Description not yet available.
dvector probing_bounded_multivariate_normal(int nvar, const dvector &a1, const dvector &b1, dmatrix &ch, const double &lprob, double pprobe, const random_number_generator &rng)
dvector bounded_multivariate_normal(int nvar, const dvector &a1, const dvector &b1, dmatrix &ch, const double &_wght, const random_number_generator &rng)
double better_rand()
Random number generator.
double ffmax(double a, double b)
double inv_cumd_exp(double x)
double myran1(long int &)
double ffmin(double a, double b)
double log_density_cauchy(const double &x)
Description not yet available.
Description not yet available.
d3_array sqrt(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
dvector bounded_robust_multivariate_normal(int nvar, const dvector &a1, const dvector &b1, dmatrix &ch, const dmatrix &ch3, double contaminant, const double &_wght, random_number_generator &rng)
Description not yet available.
d3_array exp(const d3_array &arr3)
Returns d3_array results with computed exp from elements in arr3.
dvariable beta(const prevariable &a, const prevariable &b)
Beta density function.
Description not yet available.
void initialize(void)
Initialze all elements of dvector to zero.
double inv_cumd_cauchy(const double &x)
Description not yet available.
double cumd_cauchy(const double &x)
Description not yet available.
double cumd_norm(const double &x)
Culative normal distribution; constant objects.
d3_array log(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.