Class: BoostDistributions::Lognormal
- Inherits:
-
Object
- Object
- BoostDistributions::Lognormal
- Defined in:
- ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx,
ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx
Overview
Proxy of C++ BoostDistributions::Lognormal class
Instance Method Summary collapse
-
#cdf(*args, self) ⇒ Object
call-seq: cdf(boost::math::lognormal_distribution< double,policies::policy< > >::value_type const & x, bool const & is_complement=False) -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type cdf(boost::math::lognormal_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type.
-
#chf(*args) ⇒ Object
call-seq: chf(boost::math::lognormal_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type.
-
#hazard(*args) ⇒ Object
call-seq: hazard(boost::math::lognormal_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type.
- #initialize(*args, self) ⇒ Object constructor
-
#kurtosis(*args) ⇒ Object
call-seq: kurtosis -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type.
-
#kurtosis_excess(*args) ⇒ Object
call-seq: kurtosis_excess -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type.
-
#location(*args) ⇒ Object
call-seq: location -> double.
-
#mean(*args) ⇒ Object
call-seq: mean -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type.
-
#median(*args) ⇒ Object
call-seq: median -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type.
-
#mode(*args) ⇒ Object
call-seq: mode -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type.
-
#pdf(*args) ⇒ Object
call-seq: pdf(boost::math::lognormal_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type.
-
#quantile(*args, self) ⇒ Object
call-seq: quantile(boost::math::lognormal_distribution< double,policies::policy< > >::value_type const & p, bool const & is_complement=False) -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type quantile(boost::math::lognormal_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type.
-
#range(*args) ⇒ Object
call-seq: range -> std::pair< boost::math::lognormal_distribution< double,policies::policy< > >::value_type,boost::math::lognormal_distribution< double,policies::policy< > >::value_type >.
-
#scale(*args) ⇒ Object
call-seq: scale -> double.
-
#skewness(*args) ⇒ Object
call-seq: skewness -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type.
-
#standard_deviation(*args) ⇒ Object
call-seq: standard_deviation -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type.
-
#support(*args) ⇒ Object
call-seq: support -> std::pair< boost::math::lognormal_distribution< double,policies::policy< > >::value_type,boost::math::lognormal_distribution< double,policies::policy< > >::value_type >.
-
#variance(*args) ⇒ Object
call-seq: variance -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type.
Constructor Details
#initialize(*args, self) ⇒ Object
25672 25673 25674 25675 25676 25677 25678 25679 25680 25681 25682 25683 25684 25685 25686 25687 25688 25689 25690 25691 25692 25693 25694 25695 25696 25697 25698 25699 25700 25701 25702 25703 25704 25705 25706 25707 25708 25709 25710 25711 25712 25713 25714 25715 25716 25717 25718 25719 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 25672
SWIGINTERN VALUE _wrap_new_Lognormal(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_Lognormal__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_Lognormal__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_Lognormal__SWIG_0(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 2, "Lognormal.new",
" Lognormal.new(double l_location, double l_scale)\n"
" Lognormal.new(double l_location)\n"
" Lognormal.new()\n");
return Qnil;
}
|
Instance Method Details
#cdf(*args, self) ⇒ Object
call-seq:
cdf(boost::math::lognormal_distribution< double,policies::policy< > >::value_type const & x,
bool const & is_complement=False) -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type
cdf(boost::math::lognormal_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type
An instance method.
25938 25939 25940 25941 25942 25943 25944 25945 25946 25947 25948 25949 25950 25951 25952 25953 25954 25955 25956 25957 25958 25959 25960 25961 25962 25963 25964 25965 25966 25967 25968 25969 25970 25971 25972 25973 25974 25975 25976 25977 25978 25979 25980 25981 25982 25983 25984 25985 25986 25987 25988 25989 25990 25991 25992 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 25938
SWIGINTERN VALUE _wrap_Lognormal_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__lognormal_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_Lognormal_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__lognormal_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_Lognormal_cdf__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "cdf",
" boost::math::lognormal_distribution< double,policies::policy< > >::value_type cdf(boost::math::lognormal_distribution< double,policies::policy< > >::value_type const &x, bool const &is_complement)\n"
" boost::math::lognormal_distribution< double,policies::policy< > >::value_type cdf(boost::math::lognormal_distribution< double,policies::policy< > >::value_type const &x)\n");
return Qnil;
}
|
#chf(*args) ⇒ Object
call-seq:
chf(boost::math::lognormal_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type
An instance method.
26211 26212 26213 26214 26215 26216 26217 26218 26219 26220 26221 26222 26223 26224 26225 26226 26227 26228 26229 26230 26231 26232 26233 26234 26235 26236 26237 26238 26239 26240 26241 26242 26243 26244 26245 26246 26247 26248 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 26211
SWIGINTERN VALUE
_wrap_Lognormal_chf(int argc, VALUE *argv, VALUE self) {
boost::math::lognormal_distribution< double,policies::policy< > > *arg1 = (boost::math::lognormal_distribution< double,policies::policy< > > *) 0 ;
boost::math::lognormal_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::lognormal_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::lognormal_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__lognormal_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::lognormal_distribution< double,policies::policy< > > const *","chf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::lognormal_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::lognormal_distribution< double,policies::policy< > >::value_type","chf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::lognormal_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::lognormal_distribution< double,policies::policy< > >::value_type)boost_math_lognormal_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__chf((boost::math::lognormal_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::lognormal_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type
An instance method.
26162 26163 26164 26165 26166 26167 26168 26169 26170 26171 26172 26173 26174 26175 26176 26177 26178 26179 26180 26181 26182 26183 26184 26185 26186 26187 26188 26189 26190 26191 26192 26193 26194 26195 26196 26197 26198 26199 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 26162
SWIGINTERN VALUE
_wrap_Lognormal_hazard(int argc, VALUE *argv, VALUE self) {
boost::math::lognormal_distribution< double,policies::policy< > > *arg1 = (boost::math::lognormal_distribution< double,policies::policy< > > *) 0 ;
boost::math::lognormal_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::lognormal_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::lognormal_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__lognormal_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::lognormal_distribution< double,policies::policy< > > const *","hazard", 1, self ));
}
arg1 = reinterpret_cast< boost::math::lognormal_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::lognormal_distribution< double,policies::policy< > >::value_type","hazard", 2, argv[0] ));
}
temp2 = static_cast< boost::math::lognormal_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::lognormal_distribution< double,policies::policy< > >::value_type)boost_math_lognormal_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__hazard((boost::math::lognormal_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::lognormal_distribution< double,policies::policy< > >::value_type
An instance method.
26494 26495 26496 26497 26498 26499 26500 26501 26502 26503 26504 26505 26506 26507 26508 26509 26510 26511 26512 26513 26514 26515 26516 26517 26518 26519 26520 26521 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 26494
SWIGINTERN VALUE
_wrap_Lognormal_kurtosis(int argc, VALUE *argv, VALUE self) {
boost::math::lognormal_distribution< double,policies::policy< > > *arg1 = (boost::math::lognormal_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::lognormal_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__lognormal_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::lognormal_distribution< double,policies::policy< > > const *","kurtosis", 1, self ));
}
arg1 = reinterpret_cast< boost::math::lognormal_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::lognormal_distribution< double,policies::policy< > >::value_type)boost_math_lognormal_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis((boost::math::lognormal_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::lognormal_distribution< double,policies::policy< > >::value_type
An instance method.
26533 26534 26535 26536 26537 26538 26539 26540 26541 26542 26543 26544 26545 26546 26547 26548 26549 26550 26551 26552 26553 26554 26555 26556 26557 26558 26559 26560 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 26533
SWIGINTERN VALUE
_wrap_Lognormal_kurtosis_excess(int argc, VALUE *argv, VALUE self) {
boost::math::lognormal_distribution< double,policies::policy< > > *arg1 = (boost::math::lognormal_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::lognormal_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__lognormal_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::lognormal_distribution< double,policies::policy< > > const *","kurtosis_excess", 1, self ));
}
arg1 = reinterpret_cast< boost::math::lognormal_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::lognormal_distribution< double,policies::policy< > >::value_type)boost_math_lognormal_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis_excess((boost::math::lognormal_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.
25731 25732 25733 25734 25735 25736 25737 25738 25739 25740 25741 25742 25743 25744 25745 25746 25747 25748 25749 25750 25751 25752 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 25731
SWIGINTERN VALUE
_wrap_Lognormal_location(int argc, VALUE *argv, VALUE self) {
boost::math::lognormal_distribution< double,policies::policy< > > *arg1 = (boost::math::lognormal_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__lognormal_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::lognormal_distribution< double,policies::policy< > > const *","location", 1, self ));
}
arg1 = reinterpret_cast< boost::math::lognormal_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::lognormal_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::lognormal_distribution< double,policies::policy< > >::value_type
An instance method.
26260 26261 26262 26263 26264 26265 26266 26267 26268 26269 26270 26271 26272 26273 26274 26275 26276 26277 26278 26279 26280 26281 26282 26283 26284 26285 26286 26287 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 26260
SWIGINTERN VALUE
_wrap_Lognormal_mean(int argc, VALUE *argv, VALUE self) {
boost::math::lognormal_distribution< double,policies::policy< > > *arg1 = (boost::math::lognormal_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::lognormal_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__lognormal_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::lognormal_distribution< double,policies::policy< > > const *","mean", 1, self ));
}
arg1 = reinterpret_cast< boost::math::lognormal_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::lognormal_distribution< double,policies::policy< > >::value_type)boost_math_lognormal_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mean((boost::math::lognormal_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::lognormal_distribution< double,policies::policy< > >::value_type
An instance method.
26299 26300 26301 26302 26303 26304 26305 26306 26307 26308 26309 26310 26311 26312 26313 26314 26315 26316 26317 26318 26319 26320 26321 26322 26323 26324 26325 26326 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 26299
SWIGINTERN VALUE
_wrap_Lognormal_median(int argc, VALUE *argv, VALUE self) {
boost::math::lognormal_distribution< double,policies::policy< > > *arg1 = (boost::math::lognormal_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::lognormal_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__lognormal_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::lognormal_distribution< double,policies::policy< > > const *","median", 1, self ));
}
arg1 = reinterpret_cast< boost::math::lognormal_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::lognormal_distribution< double,policies::policy< > >::value_type)boost_math_lognormal_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__median((boost::math::lognormal_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::lognormal_distribution< double,policies::policy< > >::value_type
An instance method.
26338 26339 26340 26341 26342 26343 26344 26345 26346 26347 26348 26349 26350 26351 26352 26353 26354 26355 26356 26357 26358 26359 26360 26361 26362 26363 26364 26365 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 26338
SWIGINTERN VALUE
_wrap_Lognormal_mode(int argc, VALUE *argv, VALUE self) {
boost::math::lognormal_distribution< double,policies::policy< > > *arg1 = (boost::math::lognormal_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::lognormal_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__lognormal_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::lognormal_distribution< double,policies::policy< > > const *","mode", 1, self ));
}
arg1 = reinterpret_cast< boost::math::lognormal_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::lognormal_distribution< double,policies::policy< > >::value_type)boost_math_lognormal_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mode((boost::math::lognormal_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::lognormal_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type
An instance method.
25797 25798 25799 25800 25801 25802 25803 25804 25805 25806 25807 25808 25809 25810 25811 25812 25813 25814 25815 25816 25817 25818 25819 25820 25821 25822 25823 25824 25825 25826 25827 25828 25829 25830 25831 25832 25833 25834 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 25797
SWIGINTERN VALUE
_wrap_Lognormal_pdf(int argc, VALUE *argv, VALUE self) {
boost::math::lognormal_distribution< double,policies::policy< > > *arg1 = (boost::math::lognormal_distribution< double,policies::policy< > > *) 0 ;
boost::math::lognormal_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::lognormal_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::lognormal_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__lognormal_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::lognormal_distribution< double,policies::policy< > > const *","pdf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::lognormal_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::lognormal_distribution< double,policies::policy< > >::value_type","pdf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::lognormal_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::lognormal_distribution< double,policies::policy< > >::value_type)boost_math_lognormal_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__pdf((boost::math::lognormal_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::lognormal_distribution< double,policies::policy< > >::value_type const & p,
bool const & is_complement=False) -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type
quantile(boost::math::lognormal_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::lognormal_distribution< double,policies::policy< > >::value_type
An instance method.
26096 26097 26098 26099 26100 26101 26102 26103 26104 26105 26106 26107 26108 26109 26110 26111 26112 26113 26114 26115 26116 26117 26118 26119 26120 26121 26122 26123 26124 26125 26126 26127 26128 26129 26130 26131 26132 26133 26134 26135 26136 26137 26138 26139 26140 26141 26142 26143 26144 26145 26146 26147 26148 26149 26150 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 26096
SWIGINTERN VALUE _wrap_Lognormal_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__lognormal_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_Lognormal_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__lognormal_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_Lognormal_quantile__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "quantile",
" boost::math::lognormal_distribution< double,policies::policy< > >::value_type quantile(boost::math::lognormal_distribution< double,policies::policy< > >::value_type const &p, bool const &is_complement)\n"
" boost::math::lognormal_distribution< double,policies::policy< > >::value_type quantile(boost::math::lognormal_distribution< double,policies::policy< > >::value_type const &p)\n");
return Qnil;
}
|
#range(*args) ⇒ Object
call-seq:
range -> std::pair< boost::math::lognormal_distribution< double,policies::policy< > >::value_type,boost::math::lognormal_distribution< double,policies::policy< > >::value_type >
An instance method.
26572 26573 26574 26575 26576 26577 26578 26579 26580 26581 26582 26583 26584 26585 26586 26587 26588 26589 26590 26591 26592 26593 26594 26595 26596 26597 26598 26599 26600 26601 26602 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 26572
SWIGINTERN VALUE
_wrap_Lognormal_range(int argc, VALUE *argv, VALUE self) {
boost::math::lognormal_distribution< double,policies::policy< > > *arg1 = (boost::math::lognormal_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::lognormal_distribution< double,policies::policy< > >::value_type,boost::math::lognormal_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__lognormal_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::lognormal_distribution< double,policies::policy< > > const *","range", 1, self ));
}
arg1 = reinterpret_cast< boost::math::lognormal_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_lognormal_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__range((boost::math::lognormal_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.
25764 25765 25766 25767 25768 25769 25770 25771 25772 25773 25774 25775 25776 25777 25778 25779 25780 25781 25782 25783 25784 25785 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 25764
SWIGINTERN VALUE
_wrap_Lognormal_scale(int argc, VALUE *argv, VALUE self) {
boost::math::lognormal_distribution< double,policies::policy< > > *arg1 = (boost::math::lognormal_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__lognormal_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::lognormal_distribution< double,policies::policy< > > const *","scale", 1, self ));
}
arg1 = reinterpret_cast< boost::math::lognormal_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::lognormal_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::lognormal_distribution< double,policies::policy< > >::value_type
An instance method.
26455 26456 26457 26458 26459 26460 26461 26462 26463 26464 26465 26466 26467 26468 26469 26470 26471 26472 26473 26474 26475 26476 26477 26478 26479 26480 26481 26482 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 26455
SWIGINTERN VALUE
_wrap_Lognormal_skewness(int argc, VALUE *argv, VALUE self) {
boost::math::lognormal_distribution< double,policies::policy< > > *arg1 = (boost::math::lognormal_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::lognormal_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__lognormal_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::lognormal_distribution< double,policies::policy< > > const *","skewness", 1, self ));
}
arg1 = reinterpret_cast< boost::math::lognormal_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::lognormal_distribution< double,policies::policy< > >::value_type)boost_math_lognormal_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__skewness((boost::math::lognormal_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::lognormal_distribution< double,policies::policy< > >::value_type
An instance method.
26377 26378 26379 26380 26381 26382 26383 26384 26385 26386 26387 26388 26389 26390 26391 26392 26393 26394 26395 26396 26397 26398 26399 26400 26401 26402 26403 26404 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 26377
SWIGINTERN VALUE
_wrap_Lognormal_standard_deviation(int argc, VALUE *argv, VALUE self) {
boost::math::lognormal_distribution< double,policies::policy< > > *arg1 = (boost::math::lognormal_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::lognormal_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__lognormal_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::lognormal_distribution< double,policies::policy< > > const *","standard_deviation", 1, self ));
}
arg1 = reinterpret_cast< boost::math::lognormal_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::lognormal_distribution< double,policies::policy< > >::value_type)boost_math_lognormal_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__standard_deviation((boost::math::lognormal_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::lognormal_distribution< double,policies::policy< > >::value_type,boost::math::lognormal_distribution< double,policies::policy< > >::value_type >
An instance method.
26614 26615 26616 26617 26618 26619 26620 26621 26622 26623 26624 26625 26626 26627 26628 26629 26630 26631 26632 26633 26634 26635 26636 26637 26638 26639 26640 26641 26642 26643 26644 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 26614
SWIGINTERN VALUE
_wrap_Lognormal_support(int argc, VALUE *argv, VALUE self) {
boost::math::lognormal_distribution< double,policies::policy< > > *arg1 = (boost::math::lognormal_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::lognormal_distribution< double,policies::policy< > >::value_type,boost::math::lognormal_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__lognormal_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::lognormal_distribution< double,policies::policy< > > const *","support", 1, self ));
}
arg1 = reinterpret_cast< boost::math::lognormal_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_lognormal_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__support((boost::math::lognormal_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::lognormal_distribution< double,policies::policy< > >::value_type
An instance method.
26416 26417 26418 26419 26420 26421 26422 26423 26424 26425 26426 26427 26428 26429 26430 26431 26432 26433 26434 26435 26436 26437 26438 26439 26440 26441 26442 26443 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 26416
SWIGINTERN VALUE
_wrap_Lognormal_variance(int argc, VALUE *argv, VALUE self) {
boost::math::lognormal_distribution< double,policies::policy< > > *arg1 = (boost::math::lognormal_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::lognormal_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__lognormal_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::lognormal_distribution< double,policies::policy< > > const *","variance", 1, self ));
}
arg1 = reinterpret_cast< boost::math::lognormal_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::lognormal_distribution< double,policies::policy< > >::value_type)boost_math_lognormal_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__variance((boost::math::lognormal_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;
}
|