Class: BoostDistributions::Pareto
- Inherits:
-
Object
- Object
- BoostDistributions::Pareto
- Defined in:
- ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx,
ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx
Overview
Proxy of C++ BoostDistributions::Pareto class
Instance Method Summary collapse
-
#cdf(*args, self) ⇒ Object
call-seq: cdf(boost::math::pareto_distribution< double,policies::policy< > >::value_type const & x, bool const & is_complement=False) -> boost::math::pareto_distribution< double,policies::policy< > >::value_type cdf(boost::math::pareto_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::pareto_distribution< double,policies::policy< > >::value_type.
-
#chf(*args) ⇒ Object
call-seq: chf(boost::math::pareto_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::pareto_distribution< double,policies::policy< > >::value_type.
-
#hazard(*args) ⇒ Object
call-seq: hazard(boost::math::pareto_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::pareto_distribution< double,policies::policy< > >::value_type.
- #initialize(*args, self) ⇒ Object constructor
-
#kurtosis(*args) ⇒ Object
call-seq: kurtosis -> boost::math::pareto_distribution< double,policies::policy< > >::value_type.
-
#kurtosis_excess(*args) ⇒ Object
call-seq: kurtosis_excess -> boost::math::pareto_distribution< double,policies::policy< > >::value_type.
-
#mean(*args) ⇒ Object
call-seq: mean -> boost::math::pareto_distribution< double,policies::policy< > >::value_type.
-
#median(*args) ⇒ Object
call-seq: median -> boost::math::pareto_distribution< double,policies::policy< > >::value_type.
-
#mode(*args) ⇒ Object
call-seq: mode -> boost::math::pareto_distribution< double,policies::policy< > >::value_type.
-
#pdf(*args) ⇒ Object
call-seq: pdf(boost::math::pareto_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::pareto_distribution< double,policies::policy< > >::value_type.
-
#quantile(*args, self) ⇒ Object
call-seq: quantile(boost::math::pareto_distribution< double,policies::policy< > >::value_type const & p, bool const & is_complement=False) -> boost::math::pareto_distribution< double,policies::policy< > >::value_type quantile(boost::math::pareto_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::pareto_distribution< double,policies::policy< > >::value_type.
-
#range(*args) ⇒ Object
call-seq: range -> std::pair< boost::math::pareto_distribution< double,policies::policy< > >::value_type,boost::math::pareto_distribution< double,policies::policy< > >::value_type >.
-
#scale(*args) ⇒ Object
call-seq: scale -> double.
-
#shape(*args) ⇒ Object
call-seq: shape -> double.
-
#skewness(*args) ⇒ Object
call-seq: skewness -> boost::math::pareto_distribution< double,policies::policy< > >::value_type.
-
#standard_deviation(*args) ⇒ Object
call-seq: standard_deviation -> boost::math::pareto_distribution< double,policies::policy< > >::value_type.
-
#support(*args) ⇒ Object
call-seq: support -> std::pair< boost::math::pareto_distribution< double,policies::policy< > >::value_type,boost::math::pareto_distribution< double,policies::policy< > >::value_type >.
-
#variance(*args) ⇒ Object
call-seq: variance -> boost::math::pareto_distribution< double,policies::policy< > >::value_type.
Constructor Details
#initialize(*args, self) ⇒ Object
33128 33129 33130 33131 33132 33133 33134 33135 33136 33137 33138 33139 33140 33141 33142 33143 33144 33145 33146 33147 33148 33149 33150 33151 33152 33153 33154 33155 33156 33157 33158 33159 33160 33161 33162 33163 33164 33165 33166 33167 33168 33169 33170 33171 33172 33173 33174 33175 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 33128
SWIGINTERN VALUE _wrap_new_Pareto(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_Pareto__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_Pareto__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_Pareto__SWIG_0(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 2, "Pareto.new",
" Pareto.new(double l_scale, double l_shape)\n"
" Pareto.new(double l_scale)\n"
" Pareto.new()\n");
return Qnil;
}
|
Instance Method Details
#cdf(*args, self) ⇒ Object
call-seq:
cdf(boost::math::pareto_distribution< double,policies::policy< > >::value_type const & x,
bool const & is_complement=False) -> boost::math::pareto_distribution< double,policies::policy< > >::value_type
cdf(boost::math::pareto_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::pareto_distribution< double,policies::policy< > >::value_type
An instance method.
33394 33395 33396 33397 33398 33399 33400 33401 33402 33403 33404 33405 33406 33407 33408 33409 33410 33411 33412 33413 33414 33415 33416 33417 33418 33419 33420 33421 33422 33423 33424 33425 33426 33427 33428 33429 33430 33431 33432 33433 33434 33435 33436 33437 33438 33439 33440 33441 33442 33443 33444 33445 33446 33447 33448 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 33394
SWIGINTERN VALUE _wrap_Pareto_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__pareto_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_Pareto_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__pareto_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_Pareto_cdf__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "cdf",
" boost::math::pareto_distribution< double,policies::policy< > >::value_type cdf(boost::math::pareto_distribution< double,policies::policy< > >::value_type const &x, bool const &is_complement)\n"
" boost::math::pareto_distribution< double,policies::policy< > >::value_type cdf(boost::math::pareto_distribution< double,policies::policy< > >::value_type const &x)\n");
return Qnil;
}
|
#chf(*args) ⇒ Object
call-seq:
chf(boost::math::pareto_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::pareto_distribution< double,policies::policy< > >::value_type
An instance method.
33667 33668 33669 33670 33671 33672 33673 33674 33675 33676 33677 33678 33679 33680 33681 33682 33683 33684 33685 33686 33687 33688 33689 33690 33691 33692 33693 33694 33695 33696 33697 33698 33699 33700 33701 33702 33703 33704 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 33667
SWIGINTERN VALUE
_wrap_Pareto_chf(int argc, VALUE *argv, VALUE self) {
boost::math::pareto_distribution< double,policies::policy< > > *arg1 = (boost::math::pareto_distribution< double,policies::policy< > > *) 0 ;
boost::math::pareto_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::pareto_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::pareto_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__pareto_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::pareto_distribution< double,policies::policy< > > const *","chf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::pareto_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::pareto_distribution< double,policies::policy< > >::value_type","chf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::pareto_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::pareto_distribution< double,policies::policy< > >::value_type)boost_math_pareto_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__chf((boost::math::pareto_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::pareto_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::pareto_distribution< double,policies::policy< > >::value_type
An instance method.
33618 33619 33620 33621 33622 33623 33624 33625 33626 33627 33628 33629 33630 33631 33632 33633 33634 33635 33636 33637 33638 33639 33640 33641 33642 33643 33644 33645 33646 33647 33648 33649 33650 33651 33652 33653 33654 33655 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 33618
SWIGINTERN VALUE
_wrap_Pareto_hazard(int argc, VALUE *argv, VALUE self) {
boost::math::pareto_distribution< double,policies::policy< > > *arg1 = (boost::math::pareto_distribution< double,policies::policy< > > *) 0 ;
boost::math::pareto_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::pareto_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::pareto_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__pareto_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::pareto_distribution< double,policies::policy< > > const *","hazard", 1, self ));
}
arg1 = reinterpret_cast< boost::math::pareto_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::pareto_distribution< double,policies::policy< > >::value_type","hazard", 2, argv[0] ));
}
temp2 = static_cast< boost::math::pareto_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::pareto_distribution< double,policies::policy< > >::value_type)boost_math_pareto_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__hazard((boost::math::pareto_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;
}
|
#kurtosis(*args) ⇒ Object
call-seq:
kurtosis -> boost::math::pareto_distribution< double,policies::policy< > >::value_type
An instance method.
33950 33951 33952 33953 33954 33955 33956 33957 33958 33959 33960 33961 33962 33963 33964 33965 33966 33967 33968 33969 33970 33971 33972 33973 33974 33975 33976 33977 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 33950
SWIGINTERN VALUE
_wrap_Pareto_kurtosis(int argc, VALUE *argv, VALUE self) {
boost::math::pareto_distribution< double,policies::policy< > > *arg1 = (boost::math::pareto_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::pareto_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__pareto_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::pareto_distribution< double,policies::policy< > > const *","kurtosis", 1, self ));
}
arg1 = reinterpret_cast< boost::math::pareto_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::pareto_distribution< double,policies::policy< > >::value_type)boost_math_pareto_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis((boost::math::pareto_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;
}
|
#kurtosis_excess(*args) ⇒ Object
call-seq:
kurtosis_excess -> boost::math::pareto_distribution< double,policies::policy< > >::value_type
An instance method.
33989 33990 33991 33992 33993 33994 33995 33996 33997 33998 33999 34000 34001 34002 34003 34004 34005 34006 34007 34008 34009 34010 34011 34012 34013 34014 34015 34016 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 33989
SWIGINTERN VALUE
_wrap_Pareto_kurtosis_excess(int argc, VALUE *argv, VALUE self) {
boost::math::pareto_distribution< double,policies::policy< > > *arg1 = (boost::math::pareto_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::pareto_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__pareto_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::pareto_distribution< double,policies::policy< > > const *","kurtosis_excess", 1, self ));
}
arg1 = reinterpret_cast< boost::math::pareto_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::pareto_distribution< double,policies::policy< > >::value_type)boost_math_pareto_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis_excess((boost::math::pareto_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;
}
|
#mean(*args) ⇒ Object
call-seq:
mean -> boost::math::pareto_distribution< double,policies::policy< > >::value_type
An instance method.
33716 33717 33718 33719 33720 33721 33722 33723 33724 33725 33726 33727 33728 33729 33730 33731 33732 33733 33734 33735 33736 33737 33738 33739 33740 33741 33742 33743 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 33716
SWIGINTERN VALUE
_wrap_Pareto_mean(int argc, VALUE *argv, VALUE self) {
boost::math::pareto_distribution< double,policies::policy< > > *arg1 = (boost::math::pareto_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::pareto_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__pareto_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::pareto_distribution< double,policies::policy< > > const *","mean", 1, self ));
}
arg1 = reinterpret_cast< boost::math::pareto_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::pareto_distribution< double,policies::policy< > >::value_type)boost_math_pareto_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mean((boost::math::pareto_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;
}
|
#median(*args) ⇒ Object
call-seq:
median -> boost::math::pareto_distribution< double,policies::policy< > >::value_type
An instance method.
33755 33756 33757 33758 33759 33760 33761 33762 33763 33764 33765 33766 33767 33768 33769 33770 33771 33772 33773 33774 33775 33776 33777 33778 33779 33780 33781 33782 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 33755
SWIGINTERN VALUE
_wrap_Pareto_median(int argc, VALUE *argv, VALUE self) {
boost::math::pareto_distribution< double,policies::policy< > > *arg1 = (boost::math::pareto_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::pareto_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__pareto_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::pareto_distribution< double,policies::policy< > > const *","median", 1, self ));
}
arg1 = reinterpret_cast< boost::math::pareto_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::pareto_distribution< double,policies::policy< > >::value_type)boost_math_pareto_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__median((boost::math::pareto_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::pareto_distribution< double,policies::policy< > >::value_type
An instance method.
33794 33795 33796 33797 33798 33799 33800 33801 33802 33803 33804 33805 33806 33807 33808 33809 33810 33811 33812 33813 33814 33815 33816 33817 33818 33819 33820 33821 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 33794
SWIGINTERN VALUE
_wrap_Pareto_mode(int argc, VALUE *argv, VALUE self) {
boost::math::pareto_distribution< double,policies::policy< > > *arg1 = (boost::math::pareto_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::pareto_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__pareto_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::pareto_distribution< double,policies::policy< > > const *","mode", 1, self ));
}
arg1 = reinterpret_cast< boost::math::pareto_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::pareto_distribution< double,policies::policy< > >::value_type)boost_math_pareto_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mode((boost::math::pareto_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::pareto_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::pareto_distribution< double,policies::policy< > >::value_type
An instance method.
33253 33254 33255 33256 33257 33258 33259 33260 33261 33262 33263 33264 33265 33266 33267 33268 33269 33270 33271 33272 33273 33274 33275 33276 33277 33278 33279 33280 33281 33282 33283 33284 33285 33286 33287 33288 33289 33290 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 33253
SWIGINTERN VALUE
_wrap_Pareto_pdf(int argc, VALUE *argv, VALUE self) {
boost::math::pareto_distribution< double,policies::policy< > > *arg1 = (boost::math::pareto_distribution< double,policies::policy< > > *) 0 ;
boost::math::pareto_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::pareto_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::pareto_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__pareto_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::pareto_distribution< double,policies::policy< > > const *","pdf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::pareto_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::pareto_distribution< double,policies::policy< > >::value_type","pdf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::pareto_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::pareto_distribution< double,policies::policy< > >::value_type)boost_math_pareto_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__pdf((boost::math::pareto_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::pareto_distribution< double,policies::policy< > >::value_type const & p,
bool const & is_complement=False) -> boost::math::pareto_distribution< double,policies::policy< > >::value_type
quantile(boost::math::pareto_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::pareto_distribution< double,policies::policy< > >::value_type
An instance method.
33552 33553 33554 33555 33556 33557 33558 33559 33560 33561 33562 33563 33564 33565 33566 33567 33568 33569 33570 33571 33572 33573 33574 33575 33576 33577 33578 33579 33580 33581 33582 33583 33584 33585 33586 33587 33588 33589 33590 33591 33592 33593 33594 33595 33596 33597 33598 33599 33600 33601 33602 33603 33604 33605 33606 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 33552
SWIGINTERN VALUE _wrap_Pareto_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__pareto_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_Pareto_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__pareto_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_Pareto_quantile__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "quantile",
" boost::math::pareto_distribution< double,policies::policy< > >::value_type quantile(boost::math::pareto_distribution< double,policies::policy< > >::value_type const &p, bool const &is_complement)\n"
" boost::math::pareto_distribution< double,policies::policy< > >::value_type quantile(boost::math::pareto_distribution< double,policies::policy< > >::value_type const &p)\n");
return Qnil;
}
|
#range(*args) ⇒ Object
call-seq:
range -> std::pair< boost::math::pareto_distribution< double,policies::policy< > >::value_type,boost::math::pareto_distribution< double,policies::policy< > >::value_type >
An instance method.
34028 34029 34030 34031 34032 34033 34034 34035 34036 34037 34038 34039 34040 34041 34042 34043 34044 34045 34046 34047 34048 34049 34050 34051 34052 34053 34054 34055 34056 34057 34058 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 34028
SWIGINTERN VALUE
_wrap_Pareto_range(int argc, VALUE *argv, VALUE self) {
boost::math::pareto_distribution< double,policies::policy< > > *arg1 = (boost::math::pareto_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::pareto_distribution< double,policies::policy< > >::value_type,boost::math::pareto_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__pareto_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::pareto_distribution< double,policies::policy< > > const *","range", 1, self ));
}
arg1 = reinterpret_cast< boost::math::pareto_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_pareto_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__range((boost::math::pareto_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.
33187 33188 33189 33190 33191 33192 33193 33194 33195 33196 33197 33198 33199 33200 33201 33202 33203 33204 33205 33206 33207 33208 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 33187
SWIGINTERN VALUE
_wrap_Pareto_scale(int argc, VALUE *argv, VALUE self) {
boost::math::pareto_distribution< double,policies::policy< > > *arg1 = (boost::math::pareto_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__pareto_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::pareto_distribution< double,policies::policy< > > const *","scale", 1, self ));
}
arg1 = reinterpret_cast< boost::math::pareto_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::pareto_distribution< double,policies::policy< > > const *)arg1)->scale();
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#shape(*args) ⇒ Object
call-seq:
shape -> double
An instance method.
33220 33221 33222 33223 33224 33225 33226 33227 33228 33229 33230 33231 33232 33233 33234 33235 33236 33237 33238 33239 33240 33241 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 33220
SWIGINTERN VALUE
_wrap_Pareto_shape(int argc, VALUE *argv, VALUE self) {
boost::math::pareto_distribution< double,policies::policy< > > *arg1 = (boost::math::pareto_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__pareto_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::pareto_distribution< double,policies::policy< > > const *","shape", 1, self ));
}
arg1 = reinterpret_cast< boost::math::pareto_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::pareto_distribution< double,policies::policy< > > const *)arg1)->shape();
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#skewness(*args) ⇒ Object
call-seq:
skewness -> boost::math::pareto_distribution< double,policies::policy< > >::value_type
An instance method.
33911 33912 33913 33914 33915 33916 33917 33918 33919 33920 33921 33922 33923 33924 33925 33926 33927 33928 33929 33930 33931 33932 33933 33934 33935 33936 33937 33938 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 33911
SWIGINTERN VALUE
_wrap_Pareto_skewness(int argc, VALUE *argv, VALUE self) {
boost::math::pareto_distribution< double,policies::policy< > > *arg1 = (boost::math::pareto_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::pareto_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__pareto_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::pareto_distribution< double,policies::policy< > > const *","skewness", 1, self ));
}
arg1 = reinterpret_cast< boost::math::pareto_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::pareto_distribution< double,policies::policy< > >::value_type)boost_math_pareto_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__skewness((boost::math::pareto_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;
}
|
#standard_deviation(*args) ⇒ Object
call-seq:
standard_deviation -> boost::math::pareto_distribution< double,policies::policy< > >::value_type
An instance method.
33833 33834 33835 33836 33837 33838 33839 33840 33841 33842 33843 33844 33845 33846 33847 33848 33849 33850 33851 33852 33853 33854 33855 33856 33857 33858 33859 33860 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 33833
SWIGINTERN VALUE
_wrap_Pareto_standard_deviation(int argc, VALUE *argv, VALUE self) {
boost::math::pareto_distribution< double,policies::policy< > > *arg1 = (boost::math::pareto_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::pareto_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__pareto_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::pareto_distribution< double,policies::policy< > > const *","standard_deviation", 1, self ));
}
arg1 = reinterpret_cast< boost::math::pareto_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::pareto_distribution< double,policies::policy< > >::value_type)boost_math_pareto_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__standard_deviation((boost::math::pareto_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;
}
|
#support(*args) ⇒ Object
call-seq:
support -> std::pair< boost::math::pareto_distribution< double,policies::policy< > >::value_type,boost::math::pareto_distribution< double,policies::policy< > >::value_type >
An instance method.
34070 34071 34072 34073 34074 34075 34076 34077 34078 34079 34080 34081 34082 34083 34084 34085 34086 34087 34088 34089 34090 34091 34092 34093 34094 34095 34096 34097 34098 34099 34100 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 34070
SWIGINTERN VALUE
_wrap_Pareto_support(int argc, VALUE *argv, VALUE self) {
boost::math::pareto_distribution< double,policies::policy< > > *arg1 = (boost::math::pareto_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::pareto_distribution< double,policies::policy< > >::value_type,boost::math::pareto_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__pareto_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::pareto_distribution< double,policies::policy< > > const *","support", 1, self ));
}
arg1 = reinterpret_cast< boost::math::pareto_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_pareto_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__support((boost::math::pareto_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;
}
|
#variance(*args) ⇒ Object
call-seq:
variance -> boost::math::pareto_distribution< double,policies::policy< > >::value_type
An instance method.
33872 33873 33874 33875 33876 33877 33878 33879 33880 33881 33882 33883 33884 33885 33886 33887 33888 33889 33890 33891 33892 33893 33894 33895 33896 33897 33898 33899 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 33872
SWIGINTERN VALUE
_wrap_Pareto_variance(int argc, VALUE *argv, VALUE self) {
boost::math::pareto_distribution< double,policies::policy< > > *arg1 = (boost::math::pareto_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::pareto_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__pareto_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::pareto_distribution< double,policies::policy< > > const *","variance", 1, self ));
}
arg1 = reinterpret_cast< boost::math::pareto_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::pareto_distribution< double,policies::policy< > >::value_type)boost_math_pareto_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__variance((boost::math::pareto_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;
}
|