Class: BoostDistributions::Cauchy
- Inherits:
-
Object
- Object
- BoostDistributions::Cauchy
- Defined in:
- ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx,
ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx
Overview
Proxy of C++ BoostDistributions::Cauchy class
Instance Method Summary collapse
-
#cdf(*args, self) ⇒ Object
call-seq: cdf(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const & x, bool const & is_complement=False) -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type cdf(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type.
-
#chf(*args) ⇒ Object
call-seq: chf(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type.
-
#hazard(*args) ⇒ Object
call-seq: hazard(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type.
- #initialize(*args, self) ⇒ Object constructor
-
#location(*args) ⇒ Object
call-seq: location -> double.
-
#median(*args) ⇒ Object
call-seq: median -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type.
-
#mode(*args) ⇒ Object
call-seq: mode -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type.
-
#pdf(*args) ⇒ Object
call-seq: pdf(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type.
-
#quantile(*args, self) ⇒ Object
call-seq: quantile(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const & p, bool const & is_complement=False) -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type quantile(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type.
-
#range(*args) ⇒ Object
call-seq: range -> std::pair< boost::math::cauchy_distribution< double,policies::policy< > >::value_type,boost::math::cauchy_distribution< double,policies::policy< > >::value_type >.
-
#scale(*args) ⇒ Object
call-seq: scale -> double.
-
#support(*args) ⇒ Object
call-seq: support -> std::pair< boost::math::cauchy_distribution< double,policies::policy< > >::value_type,boost::math::cauchy_distribution< double,policies::policy< > >::value_type >.
Constructor Details
#initialize(*args, self) ⇒ Object
9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 9430
SWIGINTERN VALUE _wrap_new_Cauchy(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[2];
int ii;
argc = nargs;
if (argc > 2) SWIG_fail;
for (ii = 0; (ii < argc); ++ii) {
argv[ii] = args[ii];
}
if (argc == 0) {
return _wrap_new_Cauchy__SWIG_2(nargs, args, self);
}
if (argc == 1) {
int _v;
{
int res = SWIG_AsVal_double(argv[0], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_Cauchy__SWIG_1(nargs, args, self);
}
}
if (argc == 2) {
int _v;
{
int res = SWIG_AsVal_double(argv[0], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_double(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_Cauchy__SWIG_0(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 2, "Cauchy.new",
" Cauchy.new(double l_location, double l_scale)\n"
" Cauchy.new(double l_location)\n"
" Cauchy.new()\n");
return Qnil;
}
|
Instance Method Details
#cdf(*args, self) ⇒ Object
call-seq:
cdf(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const & x,
bool const & is_complement=False) -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type
cdf(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type
An instance method.
9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 9696
SWIGINTERN VALUE _wrap_Cauchy_cdf(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[4];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 4) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__math__cauchy_distributionT_double_policies__policyT_t_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_double(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_Cauchy_cdf__SWIG_1(nargs, args, self);
}
}
}
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__math__cauchy_distributionT_double_policies__policyT_t_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_double(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_bool(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_Cauchy_cdf__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "cdf",
" boost::math::cauchy_distribution< double,policies::policy< > >::value_type cdf(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const &x, bool const &is_complement)\n"
" boost::math::cauchy_distribution< double,policies::policy< > >::value_type cdf(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const &x)\n");
return Qnil;
}
|
#chf(*args) ⇒ Object
call-seq:
chf(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type
An instance method.
9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 9969
SWIGINTERN VALUE
_wrap_Cauchy_chf(int argc, VALUE *argv, VALUE self) {
boost::math::cauchy_distribution< double,policies::policy< > > *arg1 = (boost::math::cauchy_distribution< double,policies::policy< > > *) 0 ;
boost::math::cauchy_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::cauchy_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::cauchy_distribution< double,policies::policy< > >::value_type result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_boost__math__cauchy_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::cauchy_distribution< double,policies::policy< > > const *","chf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::cauchy_distribution< double,policies::policy< > > * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "boost::math::cauchy_distribution< double,policies::policy< > >::value_type","chf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::cauchy_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::cauchy_distribution< double,policies::policy< > >::value_type)boost_math_cauchy_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__chf((boost::math::cauchy_distribution< double,policies::policy< > > const *)arg1,(double const &)*arg2);
} catch(std::logic_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
} catch(std::runtime_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
}
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#hazard(*args) ⇒ Object
call-seq:
hazard(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type
An instance method.
9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 9920
SWIGINTERN VALUE
_wrap_Cauchy_hazard(int argc, VALUE *argv, VALUE self) {
boost::math::cauchy_distribution< double,policies::policy< > > *arg1 = (boost::math::cauchy_distribution< double,policies::policy< > > *) 0 ;
boost::math::cauchy_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::cauchy_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::cauchy_distribution< double,policies::policy< > >::value_type result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_boost__math__cauchy_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::cauchy_distribution< double,policies::policy< > > const *","hazard", 1, self ));
}
arg1 = reinterpret_cast< boost::math::cauchy_distribution< double,policies::policy< > > * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "boost::math::cauchy_distribution< double,policies::policy< > >::value_type","hazard", 2, argv[0] ));
}
temp2 = static_cast< boost::math::cauchy_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::cauchy_distribution< double,policies::policy< > >::value_type)boost_math_cauchy_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__hazard((boost::math::cauchy_distribution< double,policies::policy< > > const *)arg1,(double const &)*arg2);
} catch(std::logic_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
} catch(std::runtime_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
}
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#location(*args) ⇒ Object
call-seq:
location -> double
An instance method.
9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 9489
SWIGINTERN VALUE
_wrap_Cauchy_location(int argc, VALUE *argv, VALUE self) {
boost::math::cauchy_distribution< double,policies::policy< > > *arg1 = (boost::math::cauchy_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
double result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_boost__math__cauchy_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::cauchy_distribution< double,policies::policy< > > const *","location", 1, self ));
}
arg1 = reinterpret_cast< boost::math::cauchy_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::cauchy_distribution< double,policies::policy< > > const *)arg1)->location();
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#median(*args) ⇒ Object
call-seq:
median -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type
An instance method.
10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 10018
SWIGINTERN VALUE
_wrap_Cauchy_median(int argc, VALUE *argv, VALUE self) {
boost::math::cauchy_distribution< double,policies::policy< > > *arg1 = (boost::math::cauchy_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::cauchy_distribution< double,policies::policy< > >::value_type result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_boost__math__cauchy_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::cauchy_distribution< double,policies::policy< > > const *","median", 1, self ));
}
arg1 = reinterpret_cast< boost::math::cauchy_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::cauchy_distribution< double,policies::policy< > >::value_type)boost_math_cauchy_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__median((boost::math::cauchy_distribution< double,policies::policy< > > const *)arg1);
} catch(std::logic_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
} catch(std::runtime_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
}
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#mode(*args) ⇒ Object
call-seq:
mode -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type
An instance method.
10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 10057
SWIGINTERN VALUE
_wrap_Cauchy_mode(int argc, VALUE *argv, VALUE self) {
boost::math::cauchy_distribution< double,policies::policy< > > *arg1 = (boost::math::cauchy_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::cauchy_distribution< double,policies::policy< > >::value_type result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_boost__math__cauchy_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::cauchy_distribution< double,policies::policy< > > const *","mode", 1, self ));
}
arg1 = reinterpret_cast< boost::math::cauchy_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::cauchy_distribution< double,policies::policy< > >::value_type)boost_math_cauchy_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mode((boost::math::cauchy_distribution< double,policies::policy< > > const *)arg1);
} catch(std::logic_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
} catch(std::runtime_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
}
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#pdf(*args) ⇒ Object
call-seq:
pdf(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type
An instance method.
9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 9555
SWIGINTERN VALUE
_wrap_Cauchy_pdf(int argc, VALUE *argv, VALUE self) {
boost::math::cauchy_distribution< double,policies::policy< > > *arg1 = (boost::math::cauchy_distribution< double,policies::policy< > > *) 0 ;
boost::math::cauchy_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::cauchy_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::cauchy_distribution< double,policies::policy< > >::value_type result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_boost__math__cauchy_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::cauchy_distribution< double,policies::policy< > > const *","pdf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::cauchy_distribution< double,policies::policy< > > * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "boost::math::cauchy_distribution< double,policies::policy< > >::value_type","pdf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::cauchy_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::cauchy_distribution< double,policies::policy< > >::value_type)boost_math_cauchy_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__pdf((boost::math::cauchy_distribution< double,policies::policy< > > const *)arg1,(double const &)*arg2);
} catch(std::logic_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
} catch(std::runtime_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
}
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#quantile(*args, self) ⇒ Object
call-seq:
quantile(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const & p,
bool const & is_complement=False) -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type
quantile(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::cauchy_distribution< double,policies::policy< > >::value_type
An instance method.
9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 9854
SWIGINTERN VALUE _wrap_Cauchy_quantile(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[4];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 4) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__math__cauchy_distributionT_double_policies__policyT_t_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_double(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_Cauchy_quantile__SWIG_1(nargs, args, self);
}
}
}
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__math__cauchy_distributionT_double_policies__policyT_t_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_double(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_bool(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_Cauchy_quantile__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "quantile",
" boost::math::cauchy_distribution< double,policies::policy< > >::value_type quantile(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const &p, bool const &is_complement)\n"
" boost::math::cauchy_distribution< double,policies::policy< > >::value_type quantile(boost::math::cauchy_distribution< double,policies::policy< > >::value_type const &p)\n");
return Qnil;
}
|
#range(*args) ⇒ Object
call-seq:
range -> std::pair< boost::math::cauchy_distribution< double,policies::policy< > >::value_type,boost::math::cauchy_distribution< double,policies::policy< > >::value_type >
An instance method.
10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 10096
SWIGINTERN VALUE
_wrap_Cauchy_range(int argc, VALUE *argv, VALUE self) {
boost::math::cauchy_distribution< double,policies::policy< > > *arg1 = (boost::math::cauchy_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::cauchy_distribution< double,policies::policy< > >::value_type,boost::math::cauchy_distribution< double,policies::policy< > >::value_type > result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_boost__math__cauchy_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::cauchy_distribution< double,policies::policy< > > const *","range", 1, self ));
}
arg1 = reinterpret_cast< boost::math::cauchy_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_cauchy_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__range((boost::math::cauchy_distribution< double,policies::policy< > > const *)arg1);
} catch(std::logic_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
} catch(std::runtime_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
}
{
vresult = SWIG_Ruby_AppendOutput(vresult, swig::from((&result)->first));
vresult = SWIG_Ruby_AppendOutput(vresult, swig::from((&result)->second));
}
return vresult;
fail:
return Qnil;
}
|
#scale(*args) ⇒ Object
call-seq:
scale -> double
An instance method.
9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 9522
SWIGINTERN VALUE
_wrap_Cauchy_scale(int argc, VALUE *argv, VALUE self) {
boost::math::cauchy_distribution< double,policies::policy< > > *arg1 = (boost::math::cauchy_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
double result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_boost__math__cauchy_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::cauchy_distribution< double,policies::policy< > > const *","scale", 1, self ));
}
arg1 = reinterpret_cast< boost::math::cauchy_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::cauchy_distribution< double,policies::policy< > > const *)arg1)->scale();
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#support(*args) ⇒ Object
call-seq:
support -> std::pair< boost::math::cauchy_distribution< double,policies::policy< > >::value_type,boost::math::cauchy_distribution< double,policies::policy< > >::value_type >
An instance method.
10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 10138
SWIGINTERN VALUE
_wrap_Cauchy_support(int argc, VALUE *argv, VALUE self) {
boost::math::cauchy_distribution< double,policies::policy< > > *arg1 = (boost::math::cauchy_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::cauchy_distribution< double,policies::policy< > >::value_type,boost::math::cauchy_distribution< double,policies::policy< > >::value_type > result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_boost__math__cauchy_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::cauchy_distribution< double,policies::policy< > > const *","support", 1, self ));
}
arg1 = reinterpret_cast< boost::math::cauchy_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_cauchy_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__support((boost::math::cauchy_distribution< double,policies::policy< > > const *)arg1);
} catch(std::logic_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
} catch(std::runtime_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
}
{
vresult = SWIG_Ruby_AppendOutput(vresult, swig::from((&result)->first));
vresult = SWIG_Ruby_AppendOutput(vresult, swig::from((&result)->second));
}
return vresult;
fail:
return Qnil;
}
|