Class: BoostDistributions::NonCentralBeta
- Inherits:
-
Object
- Object
- BoostDistributions::NonCentralBeta
- Defined in:
- ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx,
ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx
Overview
Proxy of C++ BoostDistributions::NonCentralBeta class
Instance Method Summary collapse
-
#alpha(*args) ⇒ Object
call-seq: alpha -> double.
-
#beta(*args) ⇒ Object
call-seq: beta -> double.
-
#cdf(*args, self) ⇒ Object
call-seq: cdf(boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type const & x, bool const & is_complement=False) -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type cdf(boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type.
-
#chf(*args) ⇒ Object
call-seq: chf(boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type.
-
#hazard(*args) ⇒ Object
call-seq: hazard(boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type.
-
#initialize(*args) ⇒ Object
constructor
call-seq: NonCentralBeta.new(double a_, double b_, double lambda).
-
#mean(*args) ⇒ Object
call-seq: mean -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type.
-
#median(*args) ⇒ Object
call-seq: median -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type.
-
#mode(*args) ⇒ Object
call-seq: mode -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type.
-
#non_centrality(*args) ⇒ Object
call-seq: non_centrality -> double.
-
#pdf(*args) ⇒ Object
call-seq: pdf(boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type.
-
#quantile(*args, self) ⇒ Object
call-seq: quantile(boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type const & p, bool const & is_complement=False) -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type quantile(boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type.
-
#range(*args) ⇒ Object
call-seq: range -> std::pair< boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type,boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type >.
-
#standard_deviation(*args) ⇒ Object
call-seq: standard_deviation -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type.
-
#support(*args) ⇒ Object
call-seq: support -> std::pair< boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type,boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type >.
-
#variance(*args) ⇒ Object
call-seq: variance -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type.
Constructor Details
#initialize(*args) ⇒ Object
call-seq:
NonCentralBeta.new(double a_, double b_, double lambda)
Class constructor.
27897 27898 27899 27900 27901 27902 27903 27904 27905 27906 27907 27908 27909 27910 27911 27912 27913 27914 27915 27916 27917 27918 27919 27920 27921 27922 27923 27924 27925 27926 27927 27928 27929 27930 27931 27932 27933 27934 27935 27936 27937 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 27897
SWIGINTERN VALUE
_wrap_new_NonCentralBeta(int argc, VALUE *argv, VALUE self) {
double arg1 ;
double arg2 ;
double arg3 ;
double val1 ;
int ecode1 = 0 ;
double val2 ;
int ecode2 = 0 ;
double val3 ;
int ecode3 = 0 ;
boost::math::non_central_beta_distribution< double,policies::policy< > > *result = 0 ;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_double(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","non_central_beta_distribution<(double,policies::policy<()>)>", 1, argv[0] ));
}
arg1 = static_cast< double >(val1);
ecode2 = SWIG_AsVal_double(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","non_central_beta_distribution<(double,policies::policy<()>)>", 2, argv[1] ));
}
arg2 = static_cast< double >(val2);
ecode3 = SWIG_AsVal_double(argv[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","non_central_beta_distribution<(double,policies::policy<()>)>", 3, argv[2] ));
}
arg3 = static_cast< double >(val3);
try {
result = (boost::math::non_central_beta_distribution< double,policies::policy< > > *)new boost::math::non_central_beta_distribution< double,policies::policy< > >(arg1,arg2,arg3);
DATA_PTR(self) = result;
} catch(std::logic_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
}
return self;
fail:
return Qnil;
}
|
Instance Method Details
#alpha(*args) ⇒ Object
call-seq:
alpha -> double
An instance method.
27949 27950 27951 27952 27953 27954 27955 27956 27957 27958 27959 27960 27961 27962 27963 27964 27965 27966 27967 27968 27969 27970 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 27949
SWIGINTERN VALUE
_wrap_NonCentralBeta_alpha(int argc, VALUE *argv, VALUE self) {
boost::math::non_central_beta_distribution< double,policies::policy< > > *arg1 = (boost::math::non_central_beta_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__non_central_beta_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::non_central_beta_distribution< double,policies::policy< > > const *","alpha", 1, self ));
}
arg1 = reinterpret_cast< boost::math::non_central_beta_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::non_central_beta_distribution< double,policies::policy< > > const *)arg1)->alpha();
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#beta(*args) ⇒ Object
call-seq:
beta -> double
An instance method.
27982 27983 27984 27985 27986 27987 27988 27989 27990 27991 27992 27993 27994 27995 27996 27997 27998 27999 28000 28001 28002 28003 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 27982
SWIGINTERN VALUE
_wrap_NonCentralBeta_beta(int argc, VALUE *argv, VALUE self) {
boost::math::non_central_beta_distribution< double,policies::policy< > > *arg1 = (boost::math::non_central_beta_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__non_central_beta_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::non_central_beta_distribution< double,policies::policy< > > const *","beta", 1, self ));
}
arg1 = reinterpret_cast< boost::math::non_central_beta_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::non_central_beta_distribution< double,policies::policy< > > const *)arg1)->beta();
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#cdf(*args, self) ⇒ Object
call-seq:
cdf(boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type const & x,
bool const & is_complement=False) -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type
cdf(boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type
An instance method.
28189 28190 28191 28192 28193 28194 28195 28196 28197 28198 28199 28200 28201 28202 28203 28204 28205 28206 28207 28208 28209 28210 28211 28212 28213 28214 28215 28216 28217 28218 28219 28220 28221 28222 28223 28224 28225 28226 28227 28228 28229 28230 28231 28232 28233 28234 28235 28236 28237 28238 28239 28240 28241 28242 28243 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 28189
SWIGINTERN VALUE _wrap_NonCentralBeta_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__non_central_beta_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_NonCentralBeta_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__non_central_beta_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_NonCentralBeta_cdf__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "cdf",
" boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type cdf(boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type const &x, bool const &is_complement)\n"
" boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type cdf(boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type const &x)\n");
return Qnil;
}
|
#chf(*args) ⇒ Object
call-seq:
chf(boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type
An instance method.
28462 28463 28464 28465 28466 28467 28468 28469 28470 28471 28472 28473 28474 28475 28476 28477 28478 28479 28480 28481 28482 28483 28484 28485 28486 28487 28488 28489 28490 28491 28492 28493 28494 28495 28496 28497 28498 28499 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 28462
SWIGINTERN VALUE
_wrap_NonCentralBeta_chf(int argc, VALUE *argv, VALUE self) {
boost::math::non_central_beta_distribution< double,policies::policy< > > *arg1 = (boost::math::non_central_beta_distribution< double,policies::policy< > > *) 0 ;
boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::non_central_beta_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__non_central_beta_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::non_central_beta_distribution< double,policies::policy< > > const *","chf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::non_central_beta_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::non_central_beta_distribution< double,policies::policy< > >::value_type","chf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type)boost_math_non_central_beta_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__chf((boost::math::non_central_beta_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::non_central_beta_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type
An instance method.
28413 28414 28415 28416 28417 28418 28419 28420 28421 28422 28423 28424 28425 28426 28427 28428 28429 28430 28431 28432 28433 28434 28435 28436 28437 28438 28439 28440 28441 28442 28443 28444 28445 28446 28447 28448 28449 28450 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 28413
SWIGINTERN VALUE
_wrap_NonCentralBeta_hazard(int argc, VALUE *argv, VALUE self) {
boost::math::non_central_beta_distribution< double,policies::policy< > > *arg1 = (boost::math::non_central_beta_distribution< double,policies::policy< > > *) 0 ;
boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::non_central_beta_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__non_central_beta_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::non_central_beta_distribution< double,policies::policy< > > const *","hazard", 1, self ));
}
arg1 = reinterpret_cast< boost::math::non_central_beta_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::non_central_beta_distribution< double,policies::policy< > >::value_type","hazard", 2, argv[0] ));
}
temp2 = static_cast< boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type)boost_math_non_central_beta_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__hazard((boost::math::non_central_beta_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;
}
|
#mean(*args) ⇒ Object
call-seq:
mean -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type
An instance method.
28511 28512 28513 28514 28515 28516 28517 28518 28519 28520 28521 28522 28523 28524 28525 28526 28527 28528 28529 28530 28531 28532 28533 28534 28535 28536 28537 28538 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 28511
SWIGINTERN VALUE
_wrap_NonCentralBeta_mean(int argc, VALUE *argv, VALUE self) {
boost::math::non_central_beta_distribution< double,policies::policy< > > *arg1 = (boost::math::non_central_beta_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::non_central_beta_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__non_central_beta_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::non_central_beta_distribution< double,policies::policy< > > const *","mean", 1, self ));
}
arg1 = reinterpret_cast< boost::math::non_central_beta_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type)boost_math_non_central_beta_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mean((boost::math::non_central_beta_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::non_central_beta_distribution< double,policies::policy< > >::value_type
An instance method.
28550 28551 28552 28553 28554 28555 28556 28557 28558 28559 28560 28561 28562 28563 28564 28565 28566 28567 28568 28569 28570 28571 28572 28573 28574 28575 28576 28577 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 28550
SWIGINTERN VALUE
_wrap_NonCentralBeta_median(int argc, VALUE *argv, VALUE self) {
boost::math::non_central_beta_distribution< double,policies::policy< > > *arg1 = (boost::math::non_central_beta_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::non_central_beta_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__non_central_beta_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::non_central_beta_distribution< double,policies::policy< > > const *","median", 1, self ));
}
arg1 = reinterpret_cast< boost::math::non_central_beta_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type)boost_math_non_central_beta_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__median((boost::math::non_central_beta_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::non_central_beta_distribution< double,policies::policy< > >::value_type
An instance method.
28589 28590 28591 28592 28593 28594 28595 28596 28597 28598 28599 28600 28601 28602 28603 28604 28605 28606 28607 28608 28609 28610 28611 28612 28613 28614 28615 28616 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 28589
SWIGINTERN VALUE
_wrap_NonCentralBeta_mode(int argc, VALUE *argv, VALUE self) {
boost::math::non_central_beta_distribution< double,policies::policy< > > *arg1 = (boost::math::non_central_beta_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::non_central_beta_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__non_central_beta_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::non_central_beta_distribution< double,policies::policy< > > const *","mode", 1, self ));
}
arg1 = reinterpret_cast< boost::math::non_central_beta_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type)boost_math_non_central_beta_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mode((boost::math::non_central_beta_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;
}
|
#non_centrality(*args) ⇒ Object
call-seq:
non_centrality -> double
An instance method.
28015 28016 28017 28018 28019 28020 28021 28022 28023 28024 28025 28026 28027 28028 28029 28030 28031 28032 28033 28034 28035 28036 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 28015
SWIGINTERN VALUE
_wrap_NonCentralBeta_non_centrality(int argc, VALUE *argv, VALUE self) {
boost::math::non_central_beta_distribution< double,policies::policy< > > *arg1 = (boost::math::non_central_beta_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__non_central_beta_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::non_central_beta_distribution< double,policies::policy< > > const *","non_centrality", 1, self ));
}
arg1 = reinterpret_cast< boost::math::non_central_beta_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::non_central_beta_distribution< double,policies::policy< > > const *)arg1)->non_centrality();
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#pdf(*args) ⇒ Object
call-seq:
pdf(boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type
An instance method.
28048 28049 28050 28051 28052 28053 28054 28055 28056 28057 28058 28059 28060 28061 28062 28063 28064 28065 28066 28067 28068 28069 28070 28071 28072 28073 28074 28075 28076 28077 28078 28079 28080 28081 28082 28083 28084 28085 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 28048
SWIGINTERN VALUE
_wrap_NonCentralBeta_pdf(int argc, VALUE *argv, VALUE self) {
boost::math::non_central_beta_distribution< double,policies::policy< > > *arg1 = (boost::math::non_central_beta_distribution< double,policies::policy< > > *) 0 ;
boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::non_central_beta_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__non_central_beta_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::non_central_beta_distribution< double,policies::policy< > > const *","pdf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::non_central_beta_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::non_central_beta_distribution< double,policies::policy< > >::value_type","pdf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type)boost_math_non_central_beta_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__pdf((boost::math::non_central_beta_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::non_central_beta_distribution< double,policies::policy< > >::value_type const & p,
bool const & is_complement=False) -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type
quantile(boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type
An instance method.
28347 28348 28349 28350 28351 28352 28353 28354 28355 28356 28357 28358 28359 28360 28361 28362 28363 28364 28365 28366 28367 28368 28369 28370 28371 28372 28373 28374 28375 28376 28377 28378 28379 28380 28381 28382 28383 28384 28385 28386 28387 28388 28389 28390 28391 28392 28393 28394 28395 28396 28397 28398 28399 28400 28401 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 28347
SWIGINTERN VALUE _wrap_NonCentralBeta_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__non_central_beta_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_NonCentralBeta_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__non_central_beta_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_NonCentralBeta_quantile__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "quantile",
" boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type quantile(boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type const &p, bool const &is_complement)\n"
" boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type quantile(boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type const &p)\n");
return Qnil;
}
|
#range(*args) ⇒ Object
call-seq:
range -> std::pair< boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type,boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type >
An instance method.
28706 28707 28708 28709 28710 28711 28712 28713 28714 28715 28716 28717 28718 28719 28720 28721 28722 28723 28724 28725 28726 28727 28728 28729 28730 28731 28732 28733 28734 28735 28736 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 28706
SWIGINTERN VALUE
_wrap_NonCentralBeta_range(int argc, VALUE *argv, VALUE self) {
boost::math::non_central_beta_distribution< double,policies::policy< > > *arg1 = (boost::math::non_central_beta_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type,boost::math::non_central_beta_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__non_central_beta_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::non_central_beta_distribution< double,policies::policy< > > const *","range", 1, self ));
}
arg1 = reinterpret_cast< boost::math::non_central_beta_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_non_central_beta_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__range((boost::math::non_central_beta_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;
}
|
#standard_deviation(*args) ⇒ Object
call-seq:
standard_deviation -> boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type
An instance method.
28628 28629 28630 28631 28632 28633 28634 28635 28636 28637 28638 28639 28640 28641 28642 28643 28644 28645 28646 28647 28648 28649 28650 28651 28652 28653 28654 28655 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 28628
SWIGINTERN VALUE
_wrap_NonCentralBeta_standard_deviation(int argc, VALUE *argv, VALUE self) {
boost::math::non_central_beta_distribution< double,policies::policy< > > *arg1 = (boost::math::non_central_beta_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::non_central_beta_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__non_central_beta_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::non_central_beta_distribution< double,policies::policy< > > const *","standard_deviation", 1, self ));
}
arg1 = reinterpret_cast< boost::math::non_central_beta_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type)boost_math_non_central_beta_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__standard_deviation((boost::math::non_central_beta_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::non_central_beta_distribution< double,policies::policy< > >::value_type,boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type >
An instance method.
28748 28749 28750 28751 28752 28753 28754 28755 28756 28757 28758 28759 28760 28761 28762 28763 28764 28765 28766 28767 28768 28769 28770 28771 28772 28773 28774 28775 28776 28777 28778 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 28748
SWIGINTERN VALUE
_wrap_NonCentralBeta_support(int argc, VALUE *argv, VALUE self) {
boost::math::non_central_beta_distribution< double,policies::policy< > > *arg1 = (boost::math::non_central_beta_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type,boost::math::non_central_beta_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__non_central_beta_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::non_central_beta_distribution< double,policies::policy< > > const *","support", 1, self ));
}
arg1 = reinterpret_cast< boost::math::non_central_beta_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_non_central_beta_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__support((boost::math::non_central_beta_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::non_central_beta_distribution< double,policies::policy< > >::value_type
An instance method.
28667 28668 28669 28670 28671 28672 28673 28674 28675 28676 28677 28678 28679 28680 28681 28682 28683 28684 28685 28686 28687 28688 28689 28690 28691 28692 28693 28694 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 28667
SWIGINTERN VALUE
_wrap_NonCentralBeta_variance(int argc, VALUE *argv, VALUE self) {
boost::math::non_central_beta_distribution< double,policies::policy< > > *arg1 = (boost::math::non_central_beta_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::non_central_beta_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__non_central_beta_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::non_central_beta_distribution< double,policies::policy< > > const *","variance", 1, self ));
}
arg1 = reinterpret_cast< boost::math::non_central_beta_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::non_central_beta_distribution< double,policies::policy< > >::value_type)boost_math_non_central_beta_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__variance((boost::math::non_central_beta_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;
}
|