Class: BoostDistributions::InverseGaussian
- Inherits:
-
Object
- Object
- BoostDistributions::InverseGaussian
- Defined in:
- ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx,
ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx
Overview
Proxy of C++ BoostDistributions::InverseGaussian class
Instance Method Summary collapse
-
#cdf(*args, self) ⇒ Object
call-seq: cdf(boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type const & x, bool const & is_complement=False) -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type cdf(boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type.
-
#chf(*args) ⇒ Object
call-seq: chf(boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type.
-
#hazard(*args) ⇒ Object
call-seq: hazard(boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type.
- #initialize(*args, self) ⇒ Object constructor
-
#kurtosis(*args) ⇒ Object
call-seq: kurtosis -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type.
-
#kurtosis_excess(*args) ⇒ Object
call-seq: kurtosis_excess -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type.
-
#location(*args) ⇒ Object
call-seq: location -> double.
-
#mean(*args) ⇒ Object
call-seq: mean -> double.
-
#median(*args) ⇒ Object
call-seq: median -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type.
-
#mode(*args) ⇒ Object
call-seq: mode -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type.
-
#pdf(*args) ⇒ Object
call-seq: pdf(boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type.
-
#quantile(*args, self) ⇒ Object
call-seq: quantile(boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type const & p, bool const & is_complement=False) -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type quantile(boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type.
-
#range(*args) ⇒ Object
call-seq: range -> std::pair< boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type,boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type >.
-
#scale(*args) ⇒ Object
call-seq: scale -> double.
-
#shape(*args) ⇒ Object
call-seq: shape -> double.
-
#skewness(*args) ⇒ Object
call-seq: skewness -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type.
-
#standard_deviation(*args) ⇒ Object
call-seq: standard_deviation -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type.
-
#support(*args) ⇒ Object
call-seq: support -> std::pair< boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type,boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type >.
-
#variance(*args) ⇒ Object
call-seq: variance -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type.
Constructor Details
#initialize(*args, self) ⇒ Object
21344 21345 21346 21347 21348 21349 21350 21351 21352 21353 21354 21355 21356 21357 21358 21359 21360 21361 21362 21363 21364 21365 21366 21367 21368 21369 21370 21371 21372 21373 21374 21375 21376 21377 21378 21379 21380 21381 21382 21383 21384 21385 21386 21387 21388 21389 21390 21391 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 21344
SWIGINTERN VALUE _wrap_new_InverseGaussian(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_InverseGaussian__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_InverseGaussian__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_InverseGaussian__SWIG_0(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 2, "InverseGaussian.new",
" InverseGaussian.new(double l_mean, double l_scale)\n"
" InverseGaussian.new(double l_mean)\n"
" InverseGaussian.new()\n");
return Qnil;
}
|
Instance Method Details
#cdf(*args, self) ⇒ Object
call-seq:
cdf(boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type const & x,
bool const & is_complement=False) -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type
cdf(boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type
An instance method.
21676 21677 21678 21679 21680 21681 21682 21683 21684 21685 21686 21687 21688 21689 21690 21691 21692 21693 21694 21695 21696 21697 21698 21699 21700 21701 21702 21703 21704 21705 21706 21707 21708 21709 21710 21711 21712 21713 21714 21715 21716 21717 21718 21719 21720 21721 21722 21723 21724 21725 21726 21727 21728 21729 21730 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 21676
SWIGINTERN VALUE _wrap_InverseGaussian_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__inverse_gaussian_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_InverseGaussian_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__inverse_gaussian_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_InverseGaussian_cdf__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "cdf",
" boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type cdf(boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type const &x, bool const &is_complement)\n"
" boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type cdf(boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type const &x)\n");
return Qnil;
}
|
#chf(*args) ⇒ Object
call-seq:
chf(boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type
An instance method.
21949 21950 21951 21952 21953 21954 21955 21956 21957 21958 21959 21960 21961 21962 21963 21964 21965 21966 21967 21968 21969 21970 21971 21972 21973 21974 21975 21976 21977 21978 21979 21980 21981 21982 21983 21984 21985 21986 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 21949
SWIGINTERN VALUE
_wrap_InverseGaussian_chf(int argc, VALUE *argv, VALUE self) {
boost::math::inverse_gaussian_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gaussian_distribution< double,policies::policy< > > *) 0 ;
boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::inverse_gaussian_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__inverse_gaussian_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *","chf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::inverse_gaussian_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::inverse_gaussian_distribution< double,policies::policy< > >::value_type","chf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gaussian_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__chf((boost::math::inverse_gaussian_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::inverse_gaussian_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type
An instance method.
21900 21901 21902 21903 21904 21905 21906 21907 21908 21909 21910 21911 21912 21913 21914 21915 21916 21917 21918 21919 21920 21921 21922 21923 21924 21925 21926 21927 21928 21929 21930 21931 21932 21933 21934 21935 21936 21937 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 21900
SWIGINTERN VALUE
_wrap_InverseGaussian_hazard(int argc, VALUE *argv, VALUE self) {
boost::math::inverse_gaussian_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gaussian_distribution< double,policies::policy< > > *) 0 ;
boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::inverse_gaussian_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__inverse_gaussian_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *","hazard", 1, self ));
}
arg1 = reinterpret_cast< boost::math::inverse_gaussian_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::inverse_gaussian_distribution< double,policies::policy< > >::value_type","hazard", 2, argv[0] ));
}
temp2 = static_cast< boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gaussian_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__hazard((boost::math::inverse_gaussian_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::inverse_gaussian_distribution< double,policies::policy< > >::value_type
An instance method.
22193 22194 22195 22196 22197 22198 22199 22200 22201 22202 22203 22204 22205 22206 22207 22208 22209 22210 22211 22212 22213 22214 22215 22216 22217 22218 22219 22220 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22193
SWIGINTERN VALUE
_wrap_InverseGaussian_kurtosis(int argc, VALUE *argv, VALUE self) {
boost::math::inverse_gaussian_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gaussian_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::inverse_gaussian_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__inverse_gaussian_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *","kurtosis", 1, self ));
}
arg1 = reinterpret_cast< boost::math::inverse_gaussian_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gaussian_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis((boost::math::inverse_gaussian_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::inverse_gaussian_distribution< double,policies::policy< > >::value_type
An instance method.
22232 22233 22234 22235 22236 22237 22238 22239 22240 22241 22242 22243 22244 22245 22246 22247 22248 22249 22250 22251 22252 22253 22254 22255 22256 22257 22258 22259 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22232
SWIGINTERN VALUE
_wrap_InverseGaussian_kurtosis_excess(int argc, VALUE *argv, VALUE self) {
boost::math::inverse_gaussian_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gaussian_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::inverse_gaussian_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__inverse_gaussian_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *","kurtosis_excess", 1, self ));
}
arg1 = reinterpret_cast< boost::math::inverse_gaussian_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gaussian_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis_excess((boost::math::inverse_gaussian_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.
21436 21437 21438 21439 21440 21441 21442 21443 21444 21445 21446 21447 21448 21449 21450 21451 21452 21453 21454 21455 21456 21457 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 21436
SWIGINTERN VALUE
_wrap_InverseGaussian_location(int argc, VALUE *argv, VALUE self) {
boost::math::inverse_gaussian_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gaussian_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__inverse_gaussian_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *","location", 1, self ));
}
arg1 = reinterpret_cast< boost::math::inverse_gaussian_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::inverse_gaussian_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 -> double
An instance method.
21403 21404 21405 21406 21407 21408 21409 21410 21411 21412 21413 21414 21415 21416 21417 21418 21419 21420 21421 21422 21423 21424 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 21403
SWIGINTERN VALUE
_wrap_InverseGaussian_mean(int argc, VALUE *argv, VALUE self) {
boost::math::inverse_gaussian_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gaussian_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__inverse_gaussian_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *","mean", 1, self ));
}
arg1 = reinterpret_cast< boost::math::inverse_gaussian_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *)arg1)->mean();
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#median(*args) ⇒ Object
call-seq:
median -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type
An instance method.
21998 21999 22000 22001 22002 22003 22004 22005 22006 22007 22008 22009 22010 22011 22012 22013 22014 22015 22016 22017 22018 22019 22020 22021 22022 22023 22024 22025 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 21998
SWIGINTERN VALUE
_wrap_InverseGaussian_median(int argc, VALUE *argv, VALUE self) {
boost::math::inverse_gaussian_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gaussian_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::inverse_gaussian_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__inverse_gaussian_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *","median", 1, self ));
}
arg1 = reinterpret_cast< boost::math::inverse_gaussian_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gaussian_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__median((boost::math::inverse_gaussian_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::inverse_gaussian_distribution< double,policies::policy< > >::value_type
An instance method.
22037 22038 22039 22040 22041 22042 22043 22044 22045 22046 22047 22048 22049 22050 22051 22052 22053 22054 22055 22056 22057 22058 22059 22060 22061 22062 22063 22064 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22037
SWIGINTERN VALUE
_wrap_InverseGaussian_mode(int argc, VALUE *argv, VALUE self) {
boost::math::inverse_gaussian_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gaussian_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::inverse_gaussian_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__inverse_gaussian_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *","mode", 1, self ));
}
arg1 = reinterpret_cast< boost::math::inverse_gaussian_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gaussian_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mode((boost::math::inverse_gaussian_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::inverse_gaussian_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type
An instance method.
21535 21536 21537 21538 21539 21540 21541 21542 21543 21544 21545 21546 21547 21548 21549 21550 21551 21552 21553 21554 21555 21556 21557 21558 21559 21560 21561 21562 21563 21564 21565 21566 21567 21568 21569 21570 21571 21572 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 21535
SWIGINTERN VALUE
_wrap_InverseGaussian_pdf(int argc, VALUE *argv, VALUE self) {
boost::math::inverse_gaussian_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gaussian_distribution< double,policies::policy< > > *) 0 ;
boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::inverse_gaussian_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__inverse_gaussian_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *","pdf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::inverse_gaussian_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::inverse_gaussian_distribution< double,policies::policy< > >::value_type","pdf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gaussian_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__pdf((boost::math::inverse_gaussian_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::inverse_gaussian_distribution< double,policies::policy< > >::value_type const & p,
bool const & is_complement=False) -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type
quantile(boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type
An instance method.
21834 21835 21836 21837 21838 21839 21840 21841 21842 21843 21844 21845 21846 21847 21848 21849 21850 21851 21852 21853 21854 21855 21856 21857 21858 21859 21860 21861 21862 21863 21864 21865 21866 21867 21868 21869 21870 21871 21872 21873 21874 21875 21876 21877 21878 21879 21880 21881 21882 21883 21884 21885 21886 21887 21888 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 21834
SWIGINTERN VALUE _wrap_InverseGaussian_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__inverse_gaussian_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_InverseGaussian_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__inverse_gaussian_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_InverseGaussian_quantile__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "quantile",
" boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type quantile(boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type const &p, bool const &is_complement)\n"
" boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type quantile(boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type const &p)\n");
return Qnil;
}
|
#range(*args) ⇒ Object
call-seq:
range -> std::pair< boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type,boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type >
An instance method.
22271 22272 22273 22274 22275 22276 22277 22278 22279 22280 22281 22282 22283 22284 22285 22286 22287 22288 22289 22290 22291 22292 22293 22294 22295 22296 22297 22298 22299 22300 22301 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22271
SWIGINTERN VALUE
_wrap_InverseGaussian_range(int argc, VALUE *argv, VALUE self) {
boost::math::inverse_gaussian_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gaussian_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type,boost::math::inverse_gaussian_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__inverse_gaussian_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *","range", 1, self ));
}
arg1 = reinterpret_cast< boost::math::inverse_gaussian_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_inverse_gaussian_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__range((boost::math::inverse_gaussian_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.
21469 21470 21471 21472 21473 21474 21475 21476 21477 21478 21479 21480 21481 21482 21483 21484 21485 21486 21487 21488 21489 21490 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 21469
SWIGINTERN VALUE
_wrap_InverseGaussian_scale(int argc, VALUE *argv, VALUE self) {
boost::math::inverse_gaussian_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gaussian_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__inverse_gaussian_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *","scale", 1, self ));
}
arg1 = reinterpret_cast< boost::math::inverse_gaussian_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *)arg1)->scale();
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#shape(*args) ⇒ Object
call-seq:
shape -> double
An instance method.
21502 21503 21504 21505 21506 21507 21508 21509 21510 21511 21512 21513 21514 21515 21516 21517 21518 21519 21520 21521 21522 21523 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 21502
SWIGINTERN VALUE
_wrap_InverseGaussian_shape(int argc, VALUE *argv, VALUE self) {
boost::math::inverse_gaussian_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gaussian_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__inverse_gaussian_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *","shape", 1, self ));
}
arg1 = reinterpret_cast< boost::math::inverse_gaussian_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *)arg1)->shape();
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#skewness(*args) ⇒ Object
call-seq:
skewness -> boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type
An instance method.
22154 22155 22156 22157 22158 22159 22160 22161 22162 22163 22164 22165 22166 22167 22168 22169 22170 22171 22172 22173 22174 22175 22176 22177 22178 22179 22180 22181 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22154
SWIGINTERN VALUE
_wrap_InverseGaussian_skewness(int argc, VALUE *argv, VALUE self) {
boost::math::inverse_gaussian_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gaussian_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::inverse_gaussian_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__inverse_gaussian_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *","skewness", 1, self ));
}
arg1 = reinterpret_cast< boost::math::inverse_gaussian_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gaussian_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__skewness((boost::math::inverse_gaussian_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::inverse_gaussian_distribution< double,policies::policy< > >::value_type
An instance method.
22076 22077 22078 22079 22080 22081 22082 22083 22084 22085 22086 22087 22088 22089 22090 22091 22092 22093 22094 22095 22096 22097 22098 22099 22100 22101 22102 22103 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22076
SWIGINTERN VALUE
_wrap_InverseGaussian_standard_deviation(int argc, VALUE *argv, VALUE self) {
boost::math::inverse_gaussian_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gaussian_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::inverse_gaussian_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__inverse_gaussian_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *","standard_deviation", 1, self ));
}
arg1 = reinterpret_cast< boost::math::inverse_gaussian_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gaussian_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__standard_deviation((boost::math::inverse_gaussian_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::inverse_gaussian_distribution< double,policies::policy< > >::value_type,boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type >
An instance method.
22313 22314 22315 22316 22317 22318 22319 22320 22321 22322 22323 22324 22325 22326 22327 22328 22329 22330 22331 22332 22333 22334 22335 22336 22337 22338 22339 22340 22341 22342 22343 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22313
SWIGINTERN VALUE
_wrap_InverseGaussian_support(int argc, VALUE *argv, VALUE self) {
boost::math::inverse_gaussian_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gaussian_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type,boost::math::inverse_gaussian_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__inverse_gaussian_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *","support", 1, self ));
}
arg1 = reinterpret_cast< boost::math::inverse_gaussian_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_inverse_gaussian_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__support((boost::math::inverse_gaussian_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::inverse_gaussian_distribution< double,policies::policy< > >::value_type
An instance method.
22115 22116 22117 22118 22119 22120 22121 22122 22123 22124 22125 22126 22127 22128 22129 22130 22131 22132 22133 22134 22135 22136 22137 22138 22139 22140 22141 22142 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22115
SWIGINTERN VALUE
_wrap_InverseGaussian_variance(int argc, VALUE *argv, VALUE self) {
boost::math::inverse_gaussian_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gaussian_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::inverse_gaussian_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__inverse_gaussian_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gaussian_distribution< double,policies::policy< > > const *","variance", 1, self ));
}
arg1 = reinterpret_cast< boost::math::inverse_gaussian_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::inverse_gaussian_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gaussian_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__variance((boost::math::inverse_gaussian_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;
}
|