ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros | Typedefs | Functions
cbivnorm.cpp File Reference

(Last Changed on August 06, 2022 for git-revision 808780089317c67198079de06b64df009a4a6543.)

#include <fvar.hpp>

Go to the source code of this file.

Classes

struct  alist
 
struct  cilist
 
struct  cllist
 
struct  complex
 
struct  doublecomplex
 
struct  icilist
 
struct  inlist
 
struct  Namelist
 
struct  olist
 
struct  Vardesc
 

Macros

#define abs(x)   ((x) >= 0 ? (x) : -(x))
 
#define bit_clear(a, b)   ((a) & ~((uinteger)1 << (b)))
 
#define bit_set(a, b)   ((a) | ((uinteger)1 << (b)))
 
#define bit_test(a, b)   ((a) >> (b) & 1)
 
#define dabs(x)   (doublereal)abs(x)
 
#define dmax(a, b)   (doublereal)max(a,b)
 
#define dmin(a, b)   (doublereal)min(a,b)
 
#define Extern   extern
 
#define F2C_INCLUDE
 Authors: Alan Genz and Yihong Ge Copyright (c) 2009-2012 ADMB foundation. More...
 
#define F2C_proc_par_types   1
 
#define FALSE_   (0)
 
#define max(a, b)   ((a) >= (b) ? (a) : (b))
 
#define min(a, b)   ((a) <= (b) ? (a) : (b))
 
#define TRUE_   (1)
 
#define VOID   void
 
#define w   ((doublereal *)&equiv_21)
 
#define x   ((doublereal *)&equiv_22)
 

Typedefs

typedef VOID C_f
 
typedef VOID(* C_fp )()
 
typedef doublereal(* D_fp )()
 
typedef double doublereal
 
typedef doublereal E_f
 
typedef doublereal(*)(* E_fp )()
 
typedef long int flag
 
typedef long int ftnint
 
typedef long int ftnlen
 
typedef VOID H_f
 
typedef VOID(* H_fp )()
 
typedef integer(* I_fp )()
 
typedef long int integer
 
typedef char integer1
 
typedef shortint(* J_fp )()
 
typedef shortlogical(* K_fp )()
 
typedef logical(* L_fp )()
 
typedef long int logical
 
typedef char logical1
 
typedef struct Namelist Namelist
 
typedef real(* R_fp )()
 
typedef float real
 
typedef int(* S_fp )()
 
typedef short int shortint
 
typedef short int shortlogical
 
typedef int(* U_fp )()
 
typedef unsigned long int uinteger
 
typedef struct Vardesc Vardesc
 
typedef VOID Z_f
 
typedef VOID(* Z_fp )()
 

Functions

double cmvbvu_ (const double *sh, const double *sk, const double *r__)
 
double cmvphi_ (double *z__)
 
double cumbvn (const double &x, const double &y, const double &rho)
 Cumulative bivariate normal distribution. More...
 
double cumbvn (const double &xl, const double &yl, const double &xu, const double &yu, const double &rho)
 Cumulative bivariate normal distribution. More...
 

Macro Definition Documentation

#define abs (   x)    ((x) >= 0 ? (x) : -(x))
#define bit_clear (   a,
 
)    ((a) & ~((uinteger)1 << (b)))

Definition at line 193 of file cbivnorm.cpp.

#define bit_set (   a,
 
)    ((a) | ((uinteger)1 << (b)))

Definition at line 194 of file cbivnorm.cpp.

#define bit_test (   a,
 
)    ((a) >> (b) & 1)

Definition at line 192 of file cbivnorm.cpp.

#define dabs (   x)    (doublereal)abs(x)

Definition at line 187 of file cbivnorm.cpp.

#define dmax (   a,
 
)    (doublereal)max(a,b)

Definition at line 191 of file cbivnorm.cpp.

Referenced by boundpin().

#define dmin (   a,
 
)    (doublereal)min(a,b)
#define Extern   extern

Definition at line 55 of file cbivnorm.cpp.

#define F2C_INCLUDE

Authors: Alan Genz and Yihong Ge Copyright (c) 2009-2012 ADMB foundation.

Ported to C++ and extensively modified by David Fournier barf [ba:rf] 2. "He suggested using FORTRAN, and everybody barfed."

  • From The Shogakukan DICTIONARY OF NEW ENGLISH (Second edition)

Definition at line 26 of file cbivnorm.cpp.

#define F2C_proc_par_types   1

Definition at line 198 of file cbivnorm.cpp.

#define FALSE_   (0)

Definition at line 51 of file cbivnorm.cpp.

#define max (   a,
 
)    ((a) >= (b) ? (a) : (b))

Definition at line 189 of file cbivnorm.cpp.

Referenced by df3_one_vector::allocate(), df1_one_vector::allocate(), df1_two_vector::allocate(), df1_three_vector::allocate(), df3_three_vector::allocate(), df3_two_vector::allocate(), adstring_array::allocate(), init_df1b2vector::allocate(), param_init_bounded_matrix_vector::allocate(), dmatrix::allocate(), d3_array::allocate(), dvar3_array::allocate(), d4_array::allocate(), dvar4_array::allocate(), dvar6_array::allocate(), laplace_approximation_calculator::banded_calculations_lme(), check_choleski_decomp(), choleski_decomp(), choleski_decomp_positive(), clean(), cmvbvu_(), colsum(), column(), column_vector(), cos(), cosh(), cubic_spline(), cvdv_elem_prod(), cvdv_sub(), dbinom(), laplace_approximation_calculator::default_calculations(), laplace_approximation_calculator::default_calculations_check_derivatives(), DF_ccv_dble_prod(), DF_cdble_dv_add(), DF_cdble_dv_diff(), DF_cdble_dv_diveq(), DF_dble_dv_add(), DF_dv_dble_div(), DF_dv_dble_prod(), DF_dv_double_prod(), DF_dv_minus(), DF_dvexp(), DF_dvlog(), DF_dvmfexp(), DF_dvsquare(), DF_FILE::DF_FILE(), DF_v_xdble_diff(), DF_vdble_dv_diveq(), dfcholeski_decomp_banded(), dfcholeski_decomp_banded_positive(), diagonal(), dmatrix_position::dmatrix_position(), laplace_approximation_calculator::do_separable_stuff_newton_raphson_block_diagonal(), dv_eqprev(), dvar3_array::dvar3_array(), dvar4_array::dvar4_array(), dvar_matrix::dvar_matrix(), dvar_matrix_position::dvar_matrix_position(), dvar_vector::dvar_vector(), dvcv_elem_prod(), dvcv_sub(), dvdv_dot(), dvdv_elem_div(), dvdv_elem_prod(), elem_div(), elem_prod(), evaluate_function(), evaluate_function_quiet(), exp(), expm(), extract_column(), fabs(), d3_array::fill_seqadd(), fmmc::fmin(), gauss_hermite_stuff::gauss_hermite_stuff(), laplace_approximation_calculator::get_complete_hessian(), shareinfo::get_inv_matrix_shared(), shareinfo::get_inv_vector_shared(), get_maxpar(), get_newton_raphson_info(), laplace_approximation_calculator::get_newton_raphson_info(), get_second_ders(), laplace_approximation_calculator::get_uhat_quasi_newton_block_diagonal(), function_minimizer::hess_step(), identity_matrix(), imatrix_position::imatrix_position(), ivector::initialize(), dvar3_array::initialize(), d4_array::initialize(), dvar4_array::initialize(), inv(), lbfgs_(), function_minimizer::limited_memory_quasi_newton(), ln_det(), log(), lower_triangular_dmatrix::lower_triangular_dmatrix(), gradient_structure::make_indvar_list(), Max(), max(), mcsrch_(), mcstep_(), mfexp(), min(), mvbvu_(), nograd_assign(), nograd_assign_column(), nograd_assign_row(), norm(), norm2(), function_minimizer::normalize_posterior_distribution(), function_minimizer::nuts_mcmc_routine(), operator&(), operator*(), dvar_matrix::operator*=(), operator+(), ivector::operator+=(), dvar_vector::operator+=(), dvar_matrix::operator+=(), operator-(), dvar_matrix::operator-=(), operator/(), dvar_vector::operator/=(), dvar_matrix::operator/=(), d3_array::operator/=(), dvar4_array::operator/=(), dvar6_array::operator/=(), operator<<(), adstring_array::operator=(), named_i4_array::operator=(), dvar_matrix::operator=(), dvar3_array::operator=(), d4_array::operator=(), d5_array::operator=(), d6_array::operator=(), d7_array::operator=(), operator>>(), pearson_residuals(), pow(), function_minimizer::random_effects_maximization(), ivector::reallocate(), restore_banded_lower_triangular_dvar_matrix_value(), restore_banded_symmetric_dvar_matrix_value(), DF_FILE::restore_d3_array_value(), DF_FILE::restore_dmatrix_position(), DF_FILE::restore_dmatrix_value(), restore_dvar_matrix_der_nozero(), restore_dvar_matrix_derivative_column(), restore_dvar_matrix_derivatives(), DF_FILE::restore_dvar_matrix_position(), DF_FILE::restore_dvar_matrix_value(), restore_dvar_vector_der_nozero(), restore_dvar_vector_derivatives(), DF_FILE::restore_dvar_vector_value(), DF_FILE::restore_dvector_value(), DF_FILE::restore_imatrix_position(), DF_FILE::restore_imatrix_value(), DF_FILE::restore_ivector_value(), restore_lower_triangular_dvar_matrix_value(), row_vector(), rowsum(), DF_FILE::save_d3_array_value(), dmatrix::save_dmatrix_derivatives(), banded_symmetric_dmatrix::save_dmatrix_derivatives(), banded_lower_triangular_dmatrix::save_dmatrix_derivatives(), dmatrix::save_dmatrix_derivatives_na(), DF_FILE::save_dmatrix_position(), DF_FILE::save_dmatrix_value(), DF_FILE::save_dvar_matrix_position(), DF_FILE::save_dvar_matrix_value(), DF_FILE::save_dvar_vector_value(), DF_FILE::save_dvector_value(), DF_FILE::save_imatrix_position(), DF_FILE::save_ivector_value(), set_value(), set_value_inv(), set_value_inv_mc(), set_value_inv_partial(), set_value_mc(), set_value_partial(), sfabs(), sin(), sinh(), size_count(), size_count_partial(), sqr(), sqrt(), square(), sum(), symmetrize(), tan(), tanh(), use_shape(), value(), X_dv_sum(), and adstring_array::~adstring_array().

#define min (   a,
 
)    ((a) <= (b) ? (a) : (b))

Definition at line 188 of file cbivnorm.cpp.

Referenced by function_minimizer::adromb(), df3_one_vector::allocate(), df1_one_vector::allocate(), df1_two_vector::allocate(), df1_three_vector::allocate(), df3_three_vector::allocate(), df3_two_vector::allocate(), param_init_bounded_matrix_vector::allocate(), dmatrix::allocate(), d3_array::allocate(), dvar3_array::allocate(), d4_array::allocate(), dvar4_array::allocate(), dvar6_array::allocate(), bounder(), function_minimizer::build_tree(), calculate_importance_sample(), calculate_importance_sample_block_diagonal(), calculate_importance_sample_block_diagonal_funnel(), calculate_importance_sample_block_diagonal_option2(), calculate_importance_sample_block_diagonal_option_antithetical(), calculate_importance_sample_funnel(), calculate_importance_sample_shess(), mat_shape::colshift(), colsum(), column(), column_vector(), cos(), cosh(), cubic_spline(), cvdv_elem_prod(), cvdv_sub(), dbinom(), laplace_approximation_calculator::default_calculations(), laplace_approximation_calculator::default_calculations_check_derivatives(), DF_ccv_dble_prod(), DF_cdble_dv_add(), DF_cdble_dv_diff(), DF_cdble_dv_diveq(), DF_dble_dv_add(), DF_dv_dble_div(), DF_dv_dble_prod(), DF_dv_double_prod(), DF_dv_minus(), DF_dvexp(), DF_dvlog(), DF_dvmfexp(), DF_dvsquare(), DF_v_xdble_diff(), DF_vdble_dv_diveq(), df_xdet(), df_xldet(), dfinvpret(), diagonal(), dlnorm(), dmatrix_position::dmatrix_position(), dmdv_solve(), dnorm(), dv_eqprev(), dvar3_array::dvar3_array(), dvar4_array::dvar4_array(), dvar_matrix::dvar_matrix(), dvar_matrix_position::dvar_matrix_position(), dvar_vector::dvar_vector(), dvcv_elem_prod(), dvcv_sub(), dvdv_dot(), dvdv_elem_div(), dvdv_elem_prod(), eigenvalues(), eigenvectors(), elem_div(), elem_prod(), exp(), extract_column(), fabs(), d3_array::fill_seqadd(), gradient_structure::funnel_gradcalc(), laplace_approximation_calculator::get_complete_hessian(), shareinfo::get_inv_matrix_shared(), shareinfo::get_inv_vector_shared(), get_maxpar(), get_newton_raphson_info(), laplace_approximation_calculator::get_newton_raphson_info(), multi_index::get_offset(), get_second_ders(), function_minimizer::hess_step(), imatrix_position::imatrix_position(), ivector::initialize(), dvar3_array::initialize(), d4_array::initialize(), dvar4_array::initialize(), inv(), function_minimizer::limited_memory_quasi_newton(), function_minimizer::limited_memory_quasi_newton_block(), ln_det(), log(), gradient_structure::make_indvar_list(), max(), mcsrch_(), mcstep_(), mfexp(), min(), function_minimizer::minimize(), multi_index::multi_index(), new_value_mc(), nograd_assign(), nograd_assign_column(), nograd_assign_row(), norm(), norm2(), function_minimizer::normalize_posterior_distribution(), function_minimizer::nuts_mcmc_routine(), operator*(), dvar_matrix::operator*=(), operator+(), ivector::operator+=(), dvar_vector::operator+=(), dvar_matrix::operator+=(), operator-(), dvar_matrix::operator-=(), operator/(), dvar_vector::operator/=(), dvar_matrix::operator/=(), d3_array::operator/=(), dvar4_array::operator/=(), dvar6_array::operator/=(), operator<<(), adstring_array::operator=(), named_i4_array::operator=(), dvar_matrix::operator=(), dvar3_array::operator=(), d4_array::operator=(), d5_array::operator=(), d6_array::operator=(), d7_array::operator=(), operator>>(), pow(), function_minimizer::prof_minimize(), function_minimizer::prof_minimize_re(), function_minimizer::projected_hess_determinant(), function_minimizer::quasi_newton_block(), function_minimizer::random_effects_maximization(), read_hessian_matrix_and_scale(), gradient_structure::restore_arrays(), restore_banded_lower_triangular_dvar_matrix_value(), restore_banded_symmetric_dvar_matrix_value(), DF_FILE::restore_d3_array_value(), DF_FILE::restore_dmatrix_position(), DF_FILE::restore_dmatrix_value(), restore_dvar_matrix_der_nozero(), restore_dvar_matrix_derivative_column(), restore_dvar_matrix_derivatives(), DF_FILE::restore_dvar_matrix_position(), DF_FILE::restore_dvar_matrix_value(), restore_dvar_vector_der_nozero(), restore_dvar_vector_derivatives(), DF_FILE::restore_dvar_vector_value(), DF_FILE::restore_dvector_value(), DF_FILE::restore_imatrix_position(), DF_FILE::restore_imatrix_value(), DF_FILE::restore_ivector_value(), restore_lower_triangular_dvar_matrix_value(), row_vector(), imatrix::rowshift(), mat_shape::rowshift(), dvar_matrix::rowshift(), dmatrix::rowshift(), rowsum(), gradient_structure::save_arrays(), DF_FILE::save_d3_array_value(), dmatrix::save_dmatrix_derivatives(), banded_symmetric_dmatrix::save_dmatrix_derivatives(), banded_lower_triangular_dmatrix::save_dmatrix_derivatives(), dmatrix::save_dmatrix_derivatives_na(), DF_FILE::save_dmatrix_position(), DF_FILE::save_dmatrix_value(), DF_FILE::save_dvar_matrix_position(), DF_FILE::save_dvar_matrix_value(), DF_FILE::save_dvar_vector_value(), DF_FILE::save_dvector_value(), DF_FILE::save_imatrix_position(), DF_FILE::save_ivector_value(), set_value(), set_value_inv(), set_value_inv_mc(), set_value_inv_partial(), set_value_mc(), set_value_partial(), sfabs(), vector_shapex::shift(), vector_shape::shift(), df1b2vector::shift(), dvar_vector::shift(), function_minimizer::shmc_mcmc_routine(), sin(), sinh(), size_count(), size_count_partial(), sqr(), sqrt(), square(), sum(), svd_mln(), symmetrize(), tan(), tanh(), use_shape(), value(), X_dv_sum(), and adstring_array::~adstring_array().

#define TRUE_   (1)

Definition at line 50 of file cbivnorm.cpp.

#define VOID   void

Definition at line 152 of file cbivnorm.cpp.

#define w   ((doublereal *)&equiv_21)
#define x   ((doublereal *)&equiv_22)

Referenced by AD_2arg_inv3(), AD_arg_inv(), AD_id(), AD_minus6_arg_inv4(), AD_minus_arg_inv2(), AD_pow_112(), ADcube_fun(), add_hist_values(), initial_params::add_random_vector(), ADfirst_arg(), ADmult_add_fun(), ADsix_id_fun(), ADsquare_fun(), ADthree_square_fun(), ADtwo_id_fun(), ageLengthKey(), ALK(), allocated(), asin(), atan2(), laplace_approximation_calculator::banded_calculations(), laplace_approximation_calculator::banded_calculations_lme(), bessj0(), bessj1(), bessk(), bessk0(), bessk1(), bessy(), bessy0(), bessy1(), beta_deviate(), betacf(), betai(), laplace_approximation_calculator::block_diagonal_calculations(), bounded_cumd_norm(), boundp(), boundpin(), calculate_importance_sample(), calculate_importance_sample_block_diagonal(), calculate_importance_sample_block_diagonal_funnel(), calculate_importance_sample_block_diagonal_option2(), calculate_importance_sample_block_diagonal_option_antithetical(), calculate_importance_sample_funnel(), calculate_importance_sample_shess(), calculate_laplace_approximation(), check_shape(), chol(), cholnew(), cmdv_prod(), cmvbvu_(), df1b2vector::copy(), copy_value_from_vector(), copy_value_to_vector(), cos(), cs_add(), cs_ipvec(), cs_lsolve(), cs_ltsolve(), cs_multiply(), cs_pvec(), cube(), cumbvn(), cumd_norm(), cumd_normal_logistic_mixture_initx(), cumd_normal_mixture_initx(), param_init_bounded_vector::curv_scale(), param_init_bounded_number::curv_scale(), param_init_bounded_matrix::curv_scale(), d1F(), d2F(), d3_np_fs(), d3F(), tiny_ad::D_atan(), dbinom(), laplace_approximation_calculator::default_calculations(), laplace_approximation_calculator::default_calculations_check_derivatives(), density_cauchy(), function_minimizer::dep_hess_routine(), function_minimizer::depvars_routine(), derch(), DF_cdble_dv_div(), DF_cdble_dv_diveq(), df_cumd_normal_logistic_mixture(), df_cumd_normal_mixture(), DF_dble_dv_div(), DF_dv_cdble_div(), DF_dv_dble_div(), DF_dv_dble_prod(), DF_dv_double_prod(), DF_dvcube(), DF_dvfourth(), DF_dvsquare(), DF_vdble_dv_diveq(), dfbltsolve(), dfcholeski_sparse(), dfinvpret(), dgamma(), dinvgamma(), dmcv_prod(), dmdv_prod(), dmdv_solve(), dnbinom(), dnbinom_tau(), do_gauss_hermite_block_diagonal(), do_gauss_hermite_block_diagonal_multi(), dvdm_prod(), dzinbinom(), elem_div(), dvar_vector::elem_value(), evaluate_function(), evaluate_function_gradient(), evaluate_function_no_derivatives(), evaluate_function_quiet(), evaluate_function_with_quadprior(), exp(), fabs(), fcomp1(), dvar_matrix::fill_seqadd(), dmatrix::fill_seqadd(), first_difference(), fmm::fmin(), fmmt1::fmin(), fmmt1::fmin2(), fourth(), DF_FILE::fread(), funnel_init_bounded_df1b2vector::funnel_init_bounded_df1b2vector(), funnel_init_df1b2matrix::funnel_init_df1b2matrix(), funnel_init_df1b2variable::funnel_init_df1b2variable(), funnel_init_df1b2vector::funnel_init_df1b2vector(), gamma_density(), gamma_deviate(), gammln(), gammlnguts(), laplace_approximation_calculator::generate_antithetical_rvs(), laplace_approximation_calculator::get_gradient_lme(), get_hessian(), laplace_approximation_calculator::get_hessian_components_banded_lme(), get_inverse_sparse_hessian(), function_minimizer::get_monte_carlo_value(), function_minimizer::get_particular_grad(), function_minimizer::hess_inv(), function_minimizer::hess_routine_and_constraint(), function_minimizer::hess_routine_noparallel(), function_minimizer::hess_routine_noparallel_random_effects(), function_minimizer::hess_routine_slave_random_effects(), function_minimizer::hess_step(), HollingII(), function_minimizer::hybrid_mcmc_routine(), inv(), inv_cumd_beta_stable(), inv_cumd_gamma(), inv_cumd_mixture(), inv_cumd_mixture_02(), inv_cumd_norm(), inv_cumd_norm_inner(), inv_cumd_normal_logistic_mixture(), inv_cumd_normal_mixture(), lbfgs_(), function_minimizer::limited_memory_quasi_newton(), function_minimizer::limited_memory_quasi_newton_block(), laplace_approximation_calculator::lincg(), ln_normal_tail_right(), log(), log_comb(), log_density_negbinomial(), log_gamma_density(), log_likelihood_mixture(), log_likelihood_mixture_02(), log_negbinomial_density(), lower_triangular_solve(), lower_triangular_solve_trans(), make_preliminary_hist(), maxnz(), param_init_bounded_vector::mc_scale(), param_init_bounded_matrix::mc_scale(), function_minimizer::mcmc_routine(), mcsrch_(), mean(), mf_upper_bound(), mf_upper_bound2(), mfexp(), Michaelis_Menten1(), Michaelis_Menten2(), function_minimizer::minimize(), fmm::minimize(), minnz(), function_minimizer::monte_carlo_routine(), negbinomial_density(), function_minimizer::neldmead(), new_value_mc(), nllBinomial(), nllGamma(), nograd_assign_column(), nograd_assign_trans(), norm(), norm2(), normal_tail_right(), normalized_gauss_hermite(), nr_generic(), old_cumd_norm(), old_inv_cumd_beta_stable(), df1b2function1::operator()(), df1b2function2::operator()(), df1b2function_tweaker::operator()(), function_tweaker::operator()(), dfunction_tweaker::operator()(), operator*(), tiny_ad::operator*(), df1_one_variable::operator*=(), df1_two_variable::operator*=(), df3_three_variable::operator*=(), df3_two_variable::operator*=(), dvector::operator*=(), df1b2vector::operator*=(), df1b2matrix::operator*=(), prevariable::operator*=(), dvar_vector::operator*=(), dvar_matrix::operator*=(), tiny_ad::operator+(), operator+(), df1b2variable::operator+=(), df1b2vector::operator+=(), prevariable::operator+=(), tiny_ad::operator-(), operator-(), df1b2variable::operator-=(), df1b2vector::operator-=(), prevariable::operator-=(), operator/(), df3_three_variable::operator/=(), df3_two_variable::operator/=(), dvector::operator/=(), df1b2vector::operator/=(), df1b2matrix::operator/=(), dvar_vector::operator/=(), dvar_matrix::operator/=(), tiny_ad::operator<<(), operator<<(), df1_one_variable::operator=(), df3_one_variable::operator=(), df1_two_variable::operator=(), df1_three_variable::operator=(), df3_three_variable::operator=(), df3_two_variable::operator=(), dvector::operator=(), df1b2variable::operator=(), df1b2vector::operator=(), dll_param_init_vector::operator=(), prevariable::operator=(), dvar_matrix::operator=(), cifstream::operator>>(), polint(), posfun(), posfun2(), pow(), funnel_init_df1b2variable::preallocate(), function_minimizer::prof_minimize(), function_minimizer::prof_minimize_re(), function_minimizer::quasi_newton_block(), randn(), function_minimizer::random_effects_maximization(), dvar_vector::read_from(), initial_params::reset1(), restore_value_from_vector(), return_choleski_decomp_solve(), return_choleski_factor_solve(), rgamma(), rmvlogistic(), function_minimizer::rotate_gradient(), function_minimizer::rotate_pars(), function_minimizer::rwm_mcmc_routine(), banded_symmetric_dmatrix::save_dmatrix_derivatives(), banded_lower_triangular_dmatrix::save_dmatrix_derivatives(), save_double_derivative(), DF_FILE::save_prevariable_value(), function_minimizer::sd_routine(), param_init_bounded_vector::sd_scale(), param_init_bounded_number::sd_scale(), param_init_bounded_matrix::sd_scale(), df1b2_init_bounded_number::sd_scale(), df1b2_init_bounded_vector::sd_scale(), df1b2_init_bounded_matrix::sd_scale(), param_init_bounded_vector::sd_vscale(), param_init_bounded_number::sd_vscale(), param_init_bounded_matrix::sd_vscale(), set_dependent_variable(), function_minimizer::set_initial_simplex(), initial_params::set_initial_value(), param_init_bounded_vector::set_minb(), param_init_bounded_number::set_minb(), param_init_bounded_matrix::set_minb(), likeprof_params::set_stepsize(), funnel_init_df1b2variable::set_value(), funnel_init_bounded_df1b2vector::set_value(), funnel_init_df1b2vector::set_value(), funnel_init_df1b2matrix::set_value(), df1b2_init_vector::set_value(), df1b2_init_matrix::set_value(), df1b2_init_number::set_value(), df1b2_init_bounded_number::set_value(), df1b2_init_bounded_vector::set_value(), random_effects_bounded_vector_info::set_value(), re_df1b2_init_bounded_vector::set_value(), df1b2_init_bounded_matrix::set_value(), set_value(), set_value_inv(), set_value_inv_mc(), set_value_inv_partial(), set_value_mc(), set_value_partial(), sgamma(), param_init_vector::shared_set_value(), param_init_matrix::shared_set_value(), param_init_bounded_matrix::shared_set_value(), param_init_d3array::shared_set_value(), param_init_vector::shared_set_value_inv(), param_init_matrix::shared_set_value_inv(), param_init_bounded_matrix::shared_set_value_inv(), param_init_d3array::shared_set_value_inv(), sin(), size_count(), size_count_partial(), Sn(), solve(), solve_trans(), spline(), splint(), sqr(), sqrt(), sqrt_m32(), sqrt_m52(), square(), sum(), svd_mln(), svd_nlm(), t_deviate(), tan(), laplace_approximation_calculator::test_trust_region_method(), tmpxchol1(), trans(), function_minimizer::trapzd(), update(), update1(), value(), var(), varchol(), tiny_ad::variable< order, nvar, Double >::variable(), tiny_ad::variable< 1, nvar, Double >::variable(), dvar_vector::write_on(), gauss_kronrod::mvIntegral< Integrand >::wrt(), gauss_kronrod::mvIntegral0< Integrand >::wrt(), initial_params::xinit1(), initial_params::xinit_all(), xxxmax(), and xxxv().

Typedef Documentation

typedef VOID C_f

Definition at line 225 of file cbivnorm.cpp.

typedef VOID(* C_fp)()

Definition at line 217 of file cbivnorm.cpp.

typedef doublereal(* D_fp)()

Definition at line 216 of file cbivnorm.cpp.

typedef double doublereal

Definition at line 36 of file cbivnorm.cpp.

typedef doublereal E_f

Definition at line 228 of file cbivnorm.cpp.

typedef doublereal(*)(* E_fp)()

Definition at line 216 of file cbivnorm.cpp.

typedef long int flag

Definition at line 66 of file cbivnorm.cpp.

typedef long int ftnint

Definition at line 68 of file cbivnorm.cpp.

typedef long int ftnlen

Definition at line 67 of file cbivnorm.cpp.

typedef VOID H_f

Definition at line 226 of file cbivnorm.cpp.

typedef VOID(* H_fp)()

Definition at line 221 of file cbivnorm.cpp.

typedef integer(* I_fp)()

Definition at line 214 of file cbivnorm.cpp.

typedef long int integer

Definition at line 31 of file cbivnorm.cpp.

typedef char integer1

Definition at line 42 of file cbivnorm.cpp.

typedef shortint(* J_fp)()

Definition at line 213 of file cbivnorm.cpp.

typedef shortlogical(* K_fp)()

Definition at line 220 of file cbivnorm.cpp.

typedef logical(* L_fp)()

Definition at line 219 of file cbivnorm.cpp.

typedef long int logical

Definition at line 39 of file cbivnorm.cpp.

typedef char logical1

Definition at line 41 of file cbivnorm.cpp.

typedef struct Namelist Namelist

Definition at line 184 of file cbivnorm.cpp.

typedef real(* R_fp)()

Definition at line 215 of file cbivnorm.cpp.

typedef float real

Definition at line 35 of file cbivnorm.cpp.

typedef int(* S_fp)()

Definition at line 222 of file cbivnorm.cpp.

typedef short int shortint

Definition at line 34 of file cbivnorm.cpp.

typedef short int shortlogical

Definition at line 40 of file cbivnorm.cpp.

typedef int(* U_fp)()

Definition at line 212 of file cbivnorm.cpp.

typedef unsigned long int uinteger

Definition at line 32 of file cbivnorm.cpp.

typedef struct Vardesc Vardesc

Definition at line 177 of file cbivnorm.cpp.

typedef VOID Z_f

Definition at line 227 of file cbivnorm.cpp.

typedef VOID(* Z_fp)()

Definition at line 218 of file cbivnorm.cpp.

Function Documentation

double cmvbvu_ ( const double *  sh,
const double *  sk,
const double *  r__ 
)

Definition at line 307 of file cbivnorm.cpp.

Referenced by cumbvn().

double cmvphi_ ( double *  z__)

Definition at line 483 of file cbivnorm.cpp.

Referenced by cmvbvu_().

double cumbvn ( const double &  x,
const double &  y,
const double &  rho 
)

Cumulative bivariate normal distribution.

Assumes two distributions X and Y both N(0,1).

Parameters
xUpper limit of inetegration on X.
yUpper limit of inetegration on Y
rhocorrelation coefficient.
Returns
Probability that X is larger than x; and Y is larger than y

Definition at line 267 of file cbivnorm.cpp.

Referenced by cumbvn().

double cumbvn ( const double &  xl,
const double &  yl,
const double &  xu,
const double &  yu,
const double &  rho 
)

Cumulative bivariate normal distribution.

Assumes two distributions X and Y both N(0,1).

Parameters
xlLower limit of inetegration on X.
ylLower limit of inetegration on Y.
xuUpper limit of inetegration on X.
yuUpper limit of inetegration on Y.
rhocorrelation coefficient.
Returns
Probability that X is between xl and xu and Y is between yl and yu

Definition at line 289 of file cbivnorm.cpp.