Class: BoostDistributions::Logistic
- Inherits:
-
Object
- Object
- BoostDistributions::Logistic
- Defined in:
- ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx,
ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx
Overview
Proxy of C++ BoostDistributions::Logistic class
Instance Method Summary collapse
-
#cdf(*args, self) ⇒ Object
call-seq: cdf(boost::math::logistic_distribution< double,policies::policy< > >::value_type const & x, bool const & is_complement=False) -> boost::math::logistic_distribution< double,policies::policy< > >::value_type cdf(boost::math::logistic_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::logistic_distribution< double,policies::policy< > >::value_type.
-
#chf(*args) ⇒ Object
call-seq: chf(boost::math::logistic_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::logistic_distribution< double,policies::policy< > >::value_type.
-
#hazard(*args) ⇒ Object
call-seq: hazard(boost::math::logistic_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::logistic_distribution< double,policies::policy< > >::value_type.
- #initialize(*args, self) ⇒ Object constructor
-
#kurtosis(*args) ⇒ Object
call-seq: kurtosis -> boost::math::logistic_distribution< double,policies::policy< > >::value_type.
-
#kurtosis_excess(*args) ⇒ Object
call-seq: kurtosis_excess -> boost::math::logistic_distribution< double,policies::policy< > >::value_type.
-
#location(*args) ⇒ Object
call-seq: location -> double.
-
#mean(*args) ⇒ Object
call-seq: mean -> boost::math::logistic_distribution< double,policies::policy< > >::value_type.
-
#median(*args) ⇒ Object
call-seq: median -> boost::math::logistic_distribution< double,policies::policy< > >::value_type.
-
#mode(*args) ⇒ Object
call-seq: mode -> boost::math::logistic_distribution< double,policies::policy< > >::value_type.
-
#pdf(*args) ⇒ Object
call-seq: pdf(boost::math::logistic_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::logistic_distribution< double,policies::policy< > >::value_type.
-
#quantile(*args, self) ⇒ Object
call-seq: quantile(boost::math::logistic_distribution< double,policies::policy< > >::value_type const & p, bool const & is_complement=False) -> boost::math::logistic_distribution< double,policies::policy< > >::value_type quantile(boost::math::logistic_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::logistic_distribution< double,policies::policy< > >::value_type.
-
#range(*args) ⇒ Object
call-seq: range -> std::pair< boost::math::logistic_distribution< double,policies::policy< > >::value_type,boost::math::logistic_distribution< double,policies::policy< > >::value_type >.
-
#scale(*args) ⇒ Object
call-seq: scale -> double.
-
#skewness(*args) ⇒ Object
call-seq: skewness -> boost::math::logistic_distribution< double,policies::policy< > >::value_type.
-
#standard_deviation(*args) ⇒ Object
call-seq: standard_deviation -> boost::math::logistic_distribution< double,policies::policy< > >::value_type.
-
#support(*args) ⇒ Object
call-seq: support -> std::pair< boost::math::logistic_distribution< double,policies::policy< > >::value_type,boost::math::logistic_distribution< double,policies::policy< > >::value_type >.
-
#variance(*args) ⇒ Object
call-seq: variance -> boost::math::logistic_distribution< double,policies::policy< > >::value_type.
Constructor Details
#initialize(*args, self) ⇒ Object
24575 24576 24577 24578 24579 24580 24581 24582 24583 24584 24585 24586 24587 24588 24589 24590 24591 24592 24593 24594 24595 24596 24597 24598 24599 24600 24601 24602 24603 24604 24605 24606 24607 24608 24609 24610 24611 24612 24613 24614 24615 24616 24617 24618 24619 24620 24621 24622 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 24575
SWIGINTERN VALUE _wrap_new_Logistic(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_Logistic__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_Logistic__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_Logistic__SWIG_0(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 2, "Logistic.new",
" Logistic.new(double l_location, double l_scale)\n"
" Logistic.new(double l_location)\n"
" Logistic.new()\n");
return Qnil;
}
|
Instance Method Details
#cdf(*args, self) ⇒ Object
call-seq:
cdf(boost::math::logistic_distribution< double,policies::policy< > >::value_type const & x,
bool const & is_complement=False) -> boost::math::logistic_distribution< double,policies::policy< > >::value_type
cdf(boost::math::logistic_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::logistic_distribution< double,policies::policy< > >::value_type
An instance method.
24841 24842 24843 24844 24845 24846 24847 24848 24849 24850 24851 24852 24853 24854 24855 24856 24857 24858 24859 24860 24861 24862 24863 24864 24865 24866 24867 24868 24869 24870 24871 24872 24873 24874 24875 24876 24877 24878 24879 24880 24881 24882 24883 24884 24885 24886 24887 24888 24889 24890 24891 24892 24893 24894 24895 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 24841
SWIGINTERN VALUE _wrap_Logistic_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__logistic_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_Logistic_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__logistic_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_Logistic_cdf__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "cdf",
" boost::math::logistic_distribution< double,policies::policy< > >::value_type cdf(boost::math::logistic_distribution< double,policies::policy< > >::value_type const &x, bool const &is_complement)\n"
" boost::math::logistic_distribution< double,policies::policy< > >::value_type cdf(boost::math::logistic_distribution< double,policies::policy< > >::value_type const &x)\n");
return Qnil;
}
|
#chf(*args) ⇒ Object
call-seq:
chf(boost::math::logistic_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::logistic_distribution< double,policies::policy< > >::value_type
An instance method.
25114 25115 25116 25117 25118 25119 25120 25121 25122 25123 25124 25125 25126 25127 25128 25129 25130 25131 25132 25133 25134 25135 25136 25137 25138 25139 25140 25141 25142 25143 25144 25145 25146 25147 25148 25149 25150 25151 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 25114
SWIGINTERN VALUE
_wrap_Logistic_chf(int argc, VALUE *argv, VALUE self) {
boost::math::logistic_distribution< double,policies::policy< > > *arg1 = (boost::math::logistic_distribution< double,policies::policy< > > *) 0 ;
boost::math::logistic_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::logistic_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::logistic_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__logistic_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::logistic_distribution< double,policies::policy< > > const *","chf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::logistic_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::logistic_distribution< double,policies::policy< > >::value_type","chf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::logistic_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::logistic_distribution< double,policies::policy< > >::value_type)boost_math_logistic_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__chf((boost::math::logistic_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::logistic_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::logistic_distribution< double,policies::policy< > >::value_type
An instance method.
25065 25066 25067 25068 25069 25070 25071 25072 25073 25074 25075 25076 25077 25078 25079 25080 25081 25082 25083 25084 25085 25086 25087 25088 25089 25090 25091 25092 25093 25094 25095 25096 25097 25098 25099 25100 25101 25102 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 25065
SWIGINTERN VALUE
_wrap_Logistic_hazard(int argc, VALUE *argv, VALUE self) {
boost::math::logistic_distribution< double,policies::policy< > > *arg1 = (boost::math::logistic_distribution< double,policies::policy< > > *) 0 ;
boost::math::logistic_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::logistic_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::logistic_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__logistic_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::logistic_distribution< double,policies::policy< > > const *","hazard", 1, self ));
}
arg1 = reinterpret_cast< boost::math::logistic_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::logistic_distribution< double,policies::policy< > >::value_type","hazard", 2, argv[0] ));
}
temp2 = static_cast< boost::math::logistic_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::logistic_distribution< double,policies::policy< > >::value_type)boost_math_logistic_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__hazard((boost::math::logistic_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::logistic_distribution< double,policies::policy< > >::value_type
An instance method.
25397 25398 25399 25400 25401 25402 25403 25404 25405 25406 25407 25408 25409 25410 25411 25412 25413 25414 25415 25416 25417 25418 25419 25420 25421 25422 25423 25424 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 25397
SWIGINTERN VALUE
_wrap_Logistic_kurtosis(int argc, VALUE *argv, VALUE self) {
boost::math::logistic_distribution< double,policies::policy< > > *arg1 = (boost::math::logistic_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::logistic_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__logistic_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::logistic_distribution< double,policies::policy< > > const *","kurtosis", 1, self ));
}
arg1 = reinterpret_cast< boost::math::logistic_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::logistic_distribution< double,policies::policy< > >::value_type)boost_math_logistic_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis((boost::math::logistic_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::logistic_distribution< double,policies::policy< > >::value_type
An instance method.
25436 25437 25438 25439 25440 25441 25442 25443 25444 25445 25446 25447 25448 25449 25450 25451 25452 25453 25454 25455 25456 25457 25458 25459 25460 25461 25462 25463 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 25436
SWIGINTERN VALUE
_wrap_Logistic_kurtosis_excess(int argc, VALUE *argv, VALUE self) {
boost::math::logistic_distribution< double,policies::policy< > > *arg1 = (boost::math::logistic_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::logistic_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__logistic_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::logistic_distribution< double,policies::policy< > > const *","kurtosis_excess", 1, self ));
}
arg1 = reinterpret_cast< boost::math::logistic_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::logistic_distribution< double,policies::policy< > >::value_type)boost_math_logistic_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis_excess((boost::math::logistic_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;
}
|
#location(*args) ⇒ Object
call-seq:
location -> double
An instance method.
24667 24668 24669 24670 24671 24672 24673 24674 24675 24676 24677 24678 24679 24680 24681 24682 24683 24684 24685 24686 24687 24688 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 24667
SWIGINTERN VALUE
_wrap_Logistic_location(int argc, VALUE *argv, VALUE self) {
boost::math::logistic_distribution< double,policies::policy< > > *arg1 = (boost::math::logistic_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__logistic_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::logistic_distribution< double,policies::policy< > > const *","location", 1, self ));
}
arg1 = reinterpret_cast< boost::math::logistic_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::logistic_distribution< double,policies::policy< > > const *)arg1)->location();
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#mean(*args) ⇒ Object
call-seq:
mean -> boost::math::logistic_distribution< double,policies::policy< > >::value_type
An instance method.
25163 25164 25165 25166 25167 25168 25169 25170 25171 25172 25173 25174 25175 25176 25177 25178 25179 25180 25181 25182 25183 25184 25185 25186 25187 25188 25189 25190 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 25163
SWIGINTERN VALUE
_wrap_Logistic_mean(int argc, VALUE *argv, VALUE self) {
boost::math::logistic_distribution< double,policies::policy< > > *arg1 = (boost::math::logistic_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::logistic_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__logistic_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::logistic_distribution< double,policies::policy< > > const *","mean", 1, self ));
}
arg1 = reinterpret_cast< boost::math::logistic_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::logistic_distribution< double,policies::policy< > >::value_type)boost_math_logistic_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mean((boost::math::logistic_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::logistic_distribution< double,policies::policy< > >::value_type
An instance method.
25202 25203 25204 25205 25206 25207 25208 25209 25210 25211 25212 25213 25214 25215 25216 25217 25218 25219 25220 25221 25222 25223 25224 25225 25226 25227 25228 25229 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 25202
SWIGINTERN VALUE
_wrap_Logistic_median(int argc, VALUE *argv, VALUE self) {
boost::math::logistic_distribution< double,policies::policy< > > *arg1 = (boost::math::logistic_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::logistic_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__logistic_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::logistic_distribution< double,policies::policy< > > const *","median", 1, self ));
}
arg1 = reinterpret_cast< boost::math::logistic_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::logistic_distribution< double,policies::policy< > >::value_type)boost_math_logistic_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__median((boost::math::logistic_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::logistic_distribution< double,policies::policy< > >::value_type
An instance method.
25241 25242 25243 25244 25245 25246 25247 25248 25249 25250 25251 25252 25253 25254 25255 25256 25257 25258 25259 25260 25261 25262 25263 25264 25265 25266 25267 25268 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 25241
SWIGINTERN VALUE
_wrap_Logistic_mode(int argc, VALUE *argv, VALUE self) {
boost::math::logistic_distribution< double,policies::policy< > > *arg1 = (boost::math::logistic_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::logistic_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__logistic_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::logistic_distribution< double,policies::policy< > > const *","mode", 1, self ));
}
arg1 = reinterpret_cast< boost::math::logistic_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::logistic_distribution< double,policies::policy< > >::value_type)boost_math_logistic_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mode((boost::math::logistic_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::logistic_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::logistic_distribution< double,policies::policy< > >::value_type
An instance method.
24700 24701 24702 24703 24704 24705 24706 24707 24708 24709 24710 24711 24712 24713 24714 24715 24716 24717 24718 24719 24720 24721 24722 24723 24724 24725 24726 24727 24728 24729 24730 24731 24732 24733 24734 24735 24736 24737 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 24700
SWIGINTERN VALUE
_wrap_Logistic_pdf(int argc, VALUE *argv, VALUE self) {
boost::math::logistic_distribution< double,policies::policy< > > *arg1 = (boost::math::logistic_distribution< double,policies::policy< > > *) 0 ;
boost::math::logistic_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::logistic_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::logistic_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__logistic_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::logistic_distribution< double,policies::policy< > > const *","pdf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::logistic_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::logistic_distribution< double,policies::policy< > >::value_type","pdf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::logistic_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::logistic_distribution< double,policies::policy< > >::value_type)boost_math_logistic_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__pdf((boost::math::logistic_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::logistic_distribution< double,policies::policy< > >::value_type const & p,
bool const & is_complement=False) -> boost::math::logistic_distribution< double,policies::policy< > >::value_type
quantile(boost::math::logistic_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::logistic_distribution< double,policies::policy< > >::value_type
An instance method.
24999 25000 25001 25002 25003 25004 25005 25006 25007 25008 25009 25010 25011 25012 25013 25014 25015 25016 25017 25018 25019 25020 25021 25022 25023 25024 25025 25026 25027 25028 25029 25030 25031 25032 25033 25034 25035 25036 25037 25038 25039 25040 25041 25042 25043 25044 25045 25046 25047 25048 25049 25050 25051 25052 25053 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 24999
SWIGINTERN VALUE _wrap_Logistic_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__logistic_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_Logistic_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__logistic_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_Logistic_quantile__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "quantile",
" boost::math::logistic_distribution< double,policies::policy< > >::value_type quantile(boost::math::logistic_distribution< double,policies::policy< > >::value_type const &p, bool const &is_complement)\n"
" boost::math::logistic_distribution< double,policies::policy< > >::value_type quantile(boost::math::logistic_distribution< double,policies::policy< > >::value_type const &p)\n");
return Qnil;
}
|
#range(*args) ⇒ Object
call-seq:
range -> std::pair< boost::math::logistic_distribution< double,policies::policy< > >::value_type,boost::math::logistic_distribution< double,policies::policy< > >::value_type >
An instance method.
25475 25476 25477 25478 25479 25480 25481 25482 25483 25484 25485 25486 25487 25488 25489 25490 25491 25492 25493 25494 25495 25496 25497 25498 25499 25500 25501 25502 25503 25504 25505 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 25475
SWIGINTERN VALUE
_wrap_Logistic_range(int argc, VALUE *argv, VALUE self) {
boost::math::logistic_distribution< double,policies::policy< > > *arg1 = (boost::math::logistic_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::logistic_distribution< double,policies::policy< > >::value_type,boost::math::logistic_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__logistic_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::logistic_distribution< double,policies::policy< > > const *","range", 1, self ));
}
arg1 = reinterpret_cast< boost::math::logistic_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_logistic_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__range((boost::math::logistic_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.
24634 24635 24636 24637 24638 24639 24640 24641 24642 24643 24644 24645 24646 24647 24648 24649 24650 24651 24652 24653 24654 24655 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 24634
SWIGINTERN VALUE
_wrap_Logistic_scale(int argc, VALUE *argv, VALUE self) {
boost::math::logistic_distribution< double,policies::policy< > > *arg1 = (boost::math::logistic_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__logistic_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::logistic_distribution< double,policies::policy< > > const *","scale", 1, self ));
}
arg1 = reinterpret_cast< boost::math::logistic_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::logistic_distribution< double,policies::policy< > > const *)arg1)->scale();
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#skewness(*args) ⇒ Object
call-seq:
skewness -> boost::math::logistic_distribution< double,policies::policy< > >::value_type
An instance method.
25358 25359 25360 25361 25362 25363 25364 25365 25366 25367 25368 25369 25370 25371 25372 25373 25374 25375 25376 25377 25378 25379 25380 25381 25382 25383 25384 25385 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 25358
SWIGINTERN VALUE
_wrap_Logistic_skewness(int argc, VALUE *argv, VALUE self) {
boost::math::logistic_distribution< double,policies::policy< > > *arg1 = (boost::math::logistic_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::logistic_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__logistic_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::logistic_distribution< double,policies::policy< > > const *","skewness", 1, self ));
}
arg1 = reinterpret_cast< boost::math::logistic_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::logistic_distribution< double,policies::policy< > >::value_type)boost_math_logistic_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__skewness((boost::math::logistic_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::logistic_distribution< double,policies::policy< > >::value_type
An instance method.
25280 25281 25282 25283 25284 25285 25286 25287 25288 25289 25290 25291 25292 25293 25294 25295 25296 25297 25298 25299 25300 25301 25302 25303 25304 25305 25306 25307 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 25280
SWIGINTERN VALUE
_wrap_Logistic_standard_deviation(int argc, VALUE *argv, VALUE self) {
boost::math::logistic_distribution< double,policies::policy< > > *arg1 = (boost::math::logistic_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::logistic_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__logistic_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::logistic_distribution< double,policies::policy< > > const *","standard_deviation", 1, self ));
}
arg1 = reinterpret_cast< boost::math::logistic_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::logistic_distribution< double,policies::policy< > >::value_type)boost_math_logistic_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__standard_deviation((boost::math::logistic_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::logistic_distribution< double,policies::policy< > >::value_type,boost::math::logistic_distribution< double,policies::policy< > >::value_type >
An instance method.
25517 25518 25519 25520 25521 25522 25523 25524 25525 25526 25527 25528 25529 25530 25531 25532 25533 25534 25535 25536 25537 25538 25539 25540 25541 25542 25543 25544 25545 25546 25547 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 25517
SWIGINTERN VALUE
_wrap_Logistic_support(int argc, VALUE *argv, VALUE self) {
boost::math::logistic_distribution< double,policies::policy< > > *arg1 = (boost::math::logistic_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::logistic_distribution< double,policies::policy< > >::value_type,boost::math::logistic_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__logistic_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::logistic_distribution< double,policies::policy< > > const *","support", 1, self ));
}
arg1 = reinterpret_cast< boost::math::logistic_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_logistic_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__support((boost::math::logistic_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::logistic_distribution< double,policies::policy< > >::value_type
An instance method.
25319 25320 25321 25322 25323 25324 25325 25326 25327 25328 25329 25330 25331 25332 25333 25334 25335 25336 25337 25338 25339 25340 25341 25342 25343 25344 25345 25346 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 25319
SWIGINTERN VALUE
_wrap_Logistic_variance(int argc, VALUE *argv, VALUE self) {
boost::math::logistic_distribution< double,policies::policy< > > *arg1 = (boost::math::logistic_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::logistic_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__logistic_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::logistic_distribution< double,policies::policy< > > const *","variance", 1, self ));
}
arg1 = reinterpret_cast< boost::math::logistic_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::logistic_distribution< double,policies::policy< > >::value_type)boost_math_logistic_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__variance((boost::math::logistic_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;
}
|