include/vinecopulib/bicop/implementation/abstract.ipp
//! evaluates the pdf, but truncates it's value by DBL_MIN and DBL_MAX.
//! @param u Matrix of evaluation points.
evaluates the pdf, but truncates it's value by DBL_MIN and DBL_MAX.
evaluates the pdf but truncates it ' s value by DBL_MIN and DBL_MAX .
inline Eigen::VectorXd
AbstractBicop::pdf(const Eigen::MatrixXd& u)
{
  Eigen::VectorXd pdf(u.rows());
  if (var_types_ == std::vector<std::string>{ "c", "c" }) {
    pdf = pdf_raw(u.leftCols(2));
  } else if (var_types_ == std::vector<std::string>{ "d", "d" }) {
    pdf = pdf_d_d(u);
  } else {
    pdf = pdf_c_d(u);
  }
  tools_eigen::trim(pdf, DBL_MIN, DBL_MAX);
  return pdf;
}
inline Eigen :: VectorXd AbstractBicop :: pdf ( const Eigen :: MatrixXd & u ) { Eigen :: VectorXd pdf ( u . rows ( ) ) ; if ( var_types_ == std :: vector < std :: string > { " " , " " } ) { pdf = pdf_raw ( u . leftCols ( 2 ) ) ; } else if ( var_types_ == std :: vector < std :: string > { " " , " " } ) { pdf = pdf_d_d ( u ) ; } else { pdf = pdf_c_d ( u ) ; } tools_eigen :: trim ( pdf , DBL_MIN , DBL_MAX ) ; return pdf ; }
evaluates the pdf, but truncates it's value by DBL_MIN and DBL_MAX.
evaluates the pdf but truncates it ' s value by DBL_MIN and DBL_MAX .