/dports/math/unuran/unuran-1.8.1/src/distributions/ |
H A D | c_slash.c | 67 #define NORMCONSTANT (distr->data.cont.norm_constant) macro 83 return (0.5 * NORMCONSTANT); in _unur_pdf_slash() 85 return ((1. - exp(-x*x/2.)) / (x*x) * NORMCONSTANT); in _unur_pdf_slash() 98 return (NORMCONSTANT * ((-2. + exp(-xsq/2.) * (2. + xsq)) / (xsq * x))); in _unur_dpdf_slash() 180 NORMCONSTANT = 1. / (M_SQRT2 * M_SQRTPI); in unur_distr_slash()
|
H A D | c_hyperbolic.c | 70 #define NORMCONSTANT (distr->data.cont.norm_constant) macro 90 return (NORMCONSTANT * exp(-alpha * sqrt(delta*delta + (x-mu)*(x-mu)) + beta*(x-mu) ) ); in _unur_pdf_hyperbolic() 100 return (-alpha * sqrt(delta*delta + (x-mu)*(x-mu)) + beta*(x-mu) + log(NORMCONSTANT) ); in _unur_logpdf_hyperbolic() 108 return (NORMCONSTANT * _unur_pdf_hyperbolic(x,distr) * _unur_dlogpdf_hyperbolic(x,distr)); in _unur_dpdf_hyperbolic() 118 return (beta - (alpha*(x-mu))/sqrt(delta*delta + (x-mu)*(x-mu)) + log(NORMCONSTANT)); in _unur_dlogpdf_hyperbolic() 243 NORMCONSTANT = _unur_normconstant_hyperbolic(params,n_params); in unur_distr_hyperbolic()
|
H A D | c_cauchy.c | 69 #define NORMCONSTANT (distr->data.cont.norm_constant) macro 96 return (1./((1+x*x)*NORMCONSTANT)); in _unur_pdf_cauchy() 113 return (-log1p(x*x)-log(NORMCONSTANT)); in _unur_logpdf_cauchy() 130 return ( -2.*x/(lambda*(1.+x*x)*(1.+x*x)*NORMCONSTANT) ); in _unur_dpdf_cauchy() 208 NORMCONSTANT = M_PI * DISTR.lambda; in _unur_upd_area_cauchy() 311 NORMCONSTANT = M_PI * DISTR.lambda; in unur_distr_cauchy()
|
H A D | c_gig2.c | 94 #define NORMCONSTANT (distr->data.cont.norm_constant) macro 120 return (NORMCONSTANT * exp( (theta-1.) * log(x) - 0.5 * (chi/x + psi*x) )); in _unur_pdf_gig2() 135 return ( (theta-1.) * log(x) - 0.5 * (chi/x + psi*x) + log(NORMCONSTANT) ); in _unur_logpdf_gig2() 150 return ( NORMCONSTANT * 0.5 * exp( (theta-3.) * log(x) - (chi + psi*x*x)/(2*x) ) in _unur_dpdf_gig2() 167 return ( -0.5*(psi - chi/(x*x)) + (theta-1.)/x + log(NORMCONSTANT) ) ; in _unur_dlogpdf_gig2() 345 NORMCONSTANT = _unur_normconstant_gig2(params,n_params); in unur_distr_gig2()
|
H A D | c_weibull.c | 85 #define NORMCONSTANT (distr->data.cont.norm_constant) macro 114 return NORMCONSTANT; in _unur_pdf_weibull() 120 return (exp (-pow (x, c) + (c-1.) * log (x)) * NORMCONSTANT); in _unur_pdf_weibull() 149 return (exp (xc + (c-2.) * log (x)) * (-1. - c * (-xc-1.)) * NORMCONSTANT * factor); in _unur_dpdf_weibull() 208 NORMCONSTANT = DISTR.c / DISTR.alpha; in _unur_upd_area_weibull() 315 NORMCONSTANT = DISTR.c / DISTR.alpha; in unur_distr_weibull()
|
H A D | c_lomax.c | 68 #define NORMCONSTANT (distr->data.cont.norm_constant) macro 89 return ( pow(x+C,-(a+1.)) * NORMCONSTANT ); in _unur_pdf_lomax() 101 return ( (x<0.) ? 0. : -(a+1.) * pow(x+C,-(a+2.)) * NORMCONSTANT ); in _unur_dpdf_lomax() 147 NORMCONSTANT = DISTR.a * pow(DISTR.C,DISTR.a); in _unur_upd_area_lomax() 246 NORMCONSTANT = DISTR.a * pow(DISTR.C,DISTR.a); in unur_distr_lomax()
|
H A D | c_student.c | 71 #define NORMCONSTANT (distr->data.cont.norm_constant) macro 93 return pow( (1. + x*x/nu), (-nu-1.)*0.5 ) / NORMCONSTANT; in _unur_pdf_student() 102 return ( (-nu-1.)*x/nu * pow( (1. + x*x/nu), (-nu-3.)*0.5 ) / NORMCONSTANT ); in _unur_dpdf_student() 160 NORMCONSTANT = _unur_normconstant_student(DISTR.params,DISTR.n_params); in _unur_upd_area_student() 259 NORMCONSTANT = _unur_normconstant_student(DISTR.params,DISTR.n_params); in unur_distr_student()
|
H A D | c_logistic.c | 83 #define NORMCONSTANT (distr->data.cont.norm_constant) macro 111 return (NORMCONSTANT * ex / ((1. + ex) * (1. + ex))); in _unur_pdf_logistic() 136 return (factor * NORMCONSTANT * ex * (ex - 1.) / ((1.+ex)*(1.+ex)*(1.+ex))); in _unur_dpdf_logistic() 191 NORMCONSTANT = 1. / DISTR.beta; in _unur_upd_area_logistic() 295 NORMCONSTANT = 1. / DISTR.beta; in unur_distr_logistic()
|
H A D | d_logarithmic.c | 67 #define NORMCONSTANT (distr->data.discr.norm_constant) macro 91 return ((k<1) ? 0. : pow( DISTR.theta, (double)k ) / k * NORMCONSTANT); in _unur_pmf_logarithmic() 130 NORMCONSTANT = -1. / log( 1.-DISTR.theta); in _unur_upd_sum_logarithmic() 223 NORMCONSTANT = -1. / log( 1.-DISTR.theta); in unur_distr_logarithmic()
|
H A D | c_lognormal.c | 70 #define NORMCONSTANT (distr->data.cont.norm_constant) macro 93 return ( 1./(x-theta) * exp( -z*z/(2.*sigma*sigma) ) / NORMCONSTANT ); in _unur_pdf_lognormal() 110 return ( 1/((x-theta)*(x-theta)) * exp( -z*z/(2*sigmasqu) ) * (1.+z/sigmasqu) / NORMCONSTANT ); in _unur_dpdf_lognormal() 238 NORMCONSTANT = DISTR.sigma * sqrt(2.*M_PI); in unur_distr_lognormal()
|
H A D | c_ghyp.c | 81 #define NORMCONSTANT (distr->data.cont.norm_constant) macro 106 return ( NORMCONSTANT in _unur_pdf_ghyp() 243 NORMCONSTANT = _unur_normconstant_ghyp(params,n_params); in unur_distr_ghyp()
|
/dports/math/unuran/unuran-1.8.1/tests/testdistributions/ |
H A D | vc_special_correlations_constantrho.c | 80 #define NORMCONSTANT (distr->data.cvec.norm_constant) macro
|
H A D | vc_special_correlations_ar1.c | 81 #define NORMCONSTANT (distr->data.cvec.norm_constant) macro
|
/dports/math/unuran/unuran-1.8.1/scripts/ |
H A D | read_PDF.pl | 323 if ($macro_name =~ /(.*NORMCONSTANT)/) {
|