Class: BoostDistributions::Bernoulli
- Inherits:
-
Object
- Object
- BoostDistributions::Bernoulli
- Defined in:
- ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx,
ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx
Overview
Proxy of C++ BoostDistributions::Bernoulli class
Instance Method Summary collapse
-
#cdf(*args, self) ⇒ Object
call-seq: cdf(boost::math::bernoulli_distribution< double,policies::policy< > >::value_type const & x, bool const & is_complement=False) -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type cdf(boost::math::bernoulli_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type.
-
#chf(*args) ⇒ Object
call-seq: chf(boost::math::bernoulli_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type.
-
#hazard(*args) ⇒ Object
call-seq: hazard(boost::math::bernoulli_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type.
- #initialize(*args, self) ⇒ Object constructor
-
#kurtosis(*args) ⇒ Object
call-seq: kurtosis -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type.
-
#kurtosis_excess(*args) ⇒ Object
call-seq: kurtosis_excess -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type.
-
#mean(*args) ⇒ Object
call-seq: mean -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type.
-
#median(*args) ⇒ Object
call-seq: median -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type.
-
#mode(*args) ⇒ Object
call-seq: mode -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type.
-
#pdf(*args) ⇒ Object
call-seq: pdf(boost::math::bernoulli_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type.
-
#quantile(*args, self) ⇒ Object
call-seq: quantile(boost::math::bernoulli_distribution< double,policies::policy< > >::value_type const & p, bool const & is_complement=False) -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type quantile(boost::math::bernoulli_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type.
-
#range(*args) ⇒ Object
call-seq: range -> std::pair< boost::math::bernoulli_distribution< double,policies::policy< > >::value_type,boost::math::bernoulli_distribution< double,policies::policy< > >::value_type >.
-
#skewness(*args) ⇒ Object
call-seq: skewness -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type.
-
#standard_deviation(*args) ⇒ Object
call-seq: standard_deviation -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type.
-
#success_fraction(*args) ⇒ Object
call-seq: success_fraction -> double.
-
#support(*args) ⇒ Object
call-seq: support -> std::pair< boost::math::bernoulli_distribution< double,policies::policy< > >::value_type,boost::math::bernoulli_distribution< double,policies::policy< > >::value_type >.
-
#variance(*args) ⇒ Object
call-seq: variance -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type.
Constructor Details
#initialize(*args, self) ⇒ Object
5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 5413
SWIGINTERN VALUE _wrap_new_Bernoulli(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[1];
int ii;
argc = nargs;
if (argc > 1) SWIG_fail;
for (ii = 0; (ii < argc); ++ii) {
argv[ii] = args[ii];
}
if (argc == 0) {
return _wrap_new_Bernoulli__SWIG_1(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_Bernoulli__SWIG_0(nargs, args, self);
}
}
fail:
Ruby_Format_OverloadedError( argc, 1, "Bernoulli.new",
" Bernoulli.new(double p)\n"
" Bernoulli.new()\n");
return Qnil;
}
|
Instance Method Details
#cdf(*args, self) ⇒ Object
call-seq:
cdf(boost::math::bernoulli_distribution< double,policies::policy< > >::value_type const & x,
bool const & is_complement=False) -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type
cdf(boost::math::bernoulli_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type
An instance method.
5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 5629
SWIGINTERN VALUE _wrap_Bernoulli_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__bernoulli_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_Bernoulli_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__bernoulli_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_Bernoulli_cdf__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "cdf",
" boost::math::bernoulli_distribution< double,policies::policy< > >::value_type cdf(boost::math::bernoulli_distribution< double,policies::policy< > >::value_type const &x, bool const &is_complement)\n"
" boost::math::bernoulli_distribution< double,policies::policy< > >::value_type cdf(boost::math::bernoulli_distribution< double,policies::policy< > >::value_type const &x)\n");
return Qnil;
}
|
#chf(*args) ⇒ Object
call-seq:
chf(boost::math::bernoulli_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type
An instance method.
5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 5902
SWIGINTERN VALUE
_wrap_Bernoulli_chf(int argc, VALUE *argv, VALUE self) {
boost::math::bernoulli_distribution< double,policies::policy< > > *arg1 = (boost::math::bernoulli_distribution< double,policies::policy< > > *) 0 ;
boost::math::bernoulli_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::bernoulli_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::bernoulli_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__bernoulli_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::bernoulli_distribution< double,policies::policy< > > const *","chf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::bernoulli_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::bernoulli_distribution< double,policies::policy< > >::value_type","chf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::bernoulli_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::bernoulli_distribution< double,policies::policy< > >::value_type)boost_math_bernoulli_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__chf((boost::math::bernoulli_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::bernoulli_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type
An instance method.
5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 5853
SWIGINTERN VALUE
_wrap_Bernoulli_hazard(int argc, VALUE *argv, VALUE self) {
boost::math::bernoulli_distribution< double,policies::policy< > > *arg1 = (boost::math::bernoulli_distribution< double,policies::policy< > > *) 0 ;
boost::math::bernoulli_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::bernoulli_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::bernoulli_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__bernoulli_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::bernoulli_distribution< double,policies::policy< > > const *","hazard", 1, self ));
}
arg1 = reinterpret_cast< boost::math::bernoulli_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::bernoulli_distribution< double,policies::policy< > >::value_type","hazard", 2, argv[0] ));
}
temp2 = static_cast< boost::math::bernoulli_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::bernoulli_distribution< double,policies::policy< > >::value_type)boost_math_bernoulli_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__hazard((boost::math::bernoulli_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::bernoulli_distribution< double,policies::policy< > >::value_type
An instance method.
6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 6185
SWIGINTERN VALUE
_wrap_Bernoulli_kurtosis(int argc, VALUE *argv, VALUE self) {
boost::math::bernoulli_distribution< double,policies::policy< > > *arg1 = (boost::math::bernoulli_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::bernoulli_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__bernoulli_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::bernoulli_distribution< double,policies::policy< > > const *","kurtosis", 1, self ));
}
arg1 = reinterpret_cast< boost::math::bernoulli_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::bernoulli_distribution< double,policies::policy< > >::value_type)boost_math_bernoulli_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis((boost::math::bernoulli_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::bernoulli_distribution< double,policies::policy< > >::value_type
An instance method.
6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 6224
SWIGINTERN VALUE
_wrap_Bernoulli_kurtosis_excess(int argc, VALUE *argv, VALUE self) {
boost::math::bernoulli_distribution< double,policies::policy< > > *arg1 = (boost::math::bernoulli_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::bernoulli_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__bernoulli_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::bernoulli_distribution< double,policies::policy< > > const *","kurtosis_excess", 1, self ));
}
arg1 = reinterpret_cast< boost::math::bernoulli_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::bernoulli_distribution< double,policies::policy< > >::value_type)boost_math_bernoulli_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis_excess((boost::math::bernoulli_distribution< double,policies::policy< > > const *)arg1);
} catch(std::logic_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
} catch(std::runtime_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
}
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#mean(*args) ⇒ Object
call-seq:
mean -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type
An instance method.
5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 5951
SWIGINTERN VALUE
_wrap_Bernoulli_mean(int argc, VALUE *argv, VALUE self) {
boost::math::bernoulli_distribution< double,policies::policy< > > *arg1 = (boost::math::bernoulli_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::bernoulli_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__bernoulli_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::bernoulli_distribution< double,policies::policy< > > const *","mean", 1, self ));
}
arg1 = reinterpret_cast< boost::math::bernoulli_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::bernoulli_distribution< double,policies::policy< > >::value_type)boost_math_bernoulli_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mean((boost::math::bernoulli_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::bernoulli_distribution< double,policies::policy< > >::value_type
An instance method.
5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 5990
SWIGINTERN VALUE
_wrap_Bernoulli_median(int argc, VALUE *argv, VALUE self) {
boost::math::bernoulli_distribution< double,policies::policy< > > *arg1 = (boost::math::bernoulli_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::bernoulli_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__bernoulli_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::bernoulli_distribution< double,policies::policy< > > const *","median", 1, self ));
}
arg1 = reinterpret_cast< boost::math::bernoulli_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::bernoulli_distribution< double,policies::policy< > >::value_type)boost_math_bernoulli_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__median((boost::math::bernoulli_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::bernoulli_distribution< double,policies::policy< > >::value_type
An instance method.
6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 6029
SWIGINTERN VALUE
_wrap_Bernoulli_mode(int argc, VALUE *argv, VALUE self) {
boost::math::bernoulli_distribution< double,policies::policy< > > *arg1 = (boost::math::bernoulli_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::bernoulli_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__bernoulli_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::bernoulli_distribution< double,policies::policy< > > const *","mode", 1, self ));
}
arg1 = reinterpret_cast< boost::math::bernoulli_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::bernoulli_distribution< double,policies::policy< > >::value_type)boost_math_bernoulli_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mode((boost::math::bernoulli_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::bernoulli_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type
An instance method.
5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 5488
SWIGINTERN VALUE
_wrap_Bernoulli_pdf(int argc, VALUE *argv, VALUE self) {
boost::math::bernoulli_distribution< double,policies::policy< > > *arg1 = (boost::math::bernoulli_distribution< double,policies::policy< > > *) 0 ;
boost::math::bernoulli_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::bernoulli_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::bernoulli_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__bernoulli_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::bernoulli_distribution< double,policies::policy< > > const *","pdf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::bernoulli_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::bernoulli_distribution< double,policies::policy< > >::value_type","pdf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::bernoulli_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::bernoulli_distribution< double,policies::policy< > >::value_type)boost_math_bernoulli_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__pdf((boost::math::bernoulli_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::bernoulli_distribution< double,policies::policy< > >::value_type const & p,
bool const & is_complement=False) -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type
quantile(boost::math::bernoulli_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type
An instance method.
5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 5787
SWIGINTERN VALUE _wrap_Bernoulli_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__bernoulli_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_Bernoulli_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__bernoulli_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_Bernoulli_quantile__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "quantile",
" boost::math::bernoulli_distribution< double,policies::policy< > >::value_type quantile(boost::math::bernoulli_distribution< double,policies::policy< > >::value_type const &p, bool const &is_complement)\n"
" boost::math::bernoulli_distribution< double,policies::policy< > >::value_type quantile(boost::math::bernoulli_distribution< double,policies::policy< > >::value_type const &p)\n");
return Qnil;
}
|
#range(*args) ⇒ Object
call-seq:
range -> std::pair< boost::math::bernoulli_distribution< double,policies::policy< > >::value_type,boost::math::bernoulli_distribution< double,policies::policy< > >::value_type >
An instance method.
6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 6263
SWIGINTERN VALUE
_wrap_Bernoulli_range(int argc, VALUE *argv, VALUE self) {
boost::math::bernoulli_distribution< double,policies::policy< > > *arg1 = (boost::math::bernoulli_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::bernoulli_distribution< double,policies::policy< > >::value_type,boost::math::bernoulli_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__bernoulli_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::bernoulli_distribution< double,policies::policy< > > const *","range", 1, self ));
}
arg1 = reinterpret_cast< boost::math::bernoulli_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_bernoulli_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__range((boost::math::bernoulli_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;
}
|
#skewness(*args) ⇒ Object
call-seq:
skewness -> boost::math::bernoulli_distribution< double,policies::policy< > >::value_type
An instance method.
6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 6146
SWIGINTERN VALUE
_wrap_Bernoulli_skewness(int argc, VALUE *argv, VALUE self) {
boost::math::bernoulli_distribution< double,policies::policy< > > *arg1 = (boost::math::bernoulli_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::bernoulli_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__bernoulli_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::bernoulli_distribution< double,policies::policy< > > const *","skewness", 1, self ));
}
arg1 = reinterpret_cast< boost::math::bernoulli_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::bernoulli_distribution< double,policies::policy< > >::value_type)boost_math_bernoulli_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__skewness((boost::math::bernoulli_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::bernoulli_distribution< double,policies::policy< > >::value_type
An instance method.
6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 6068
SWIGINTERN VALUE
_wrap_Bernoulli_standard_deviation(int argc, VALUE *argv, VALUE self) {
boost::math::bernoulli_distribution< double,policies::policy< > > *arg1 = (boost::math::bernoulli_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::bernoulli_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__bernoulli_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::bernoulli_distribution< double,policies::policy< > > const *","standard_deviation", 1, self ));
}
arg1 = reinterpret_cast< boost::math::bernoulli_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::bernoulli_distribution< double,policies::policy< > >::value_type)boost_math_bernoulli_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__standard_deviation((boost::math::bernoulli_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;
}
|
#success_fraction(*args) ⇒ Object
call-seq:
success_fraction -> double
An instance method.
5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 5455
SWIGINTERN VALUE
_wrap_Bernoulli_success_fraction(int argc, VALUE *argv, VALUE self) {
boost::math::bernoulli_distribution< double,policies::policy< > > *arg1 = (boost::math::bernoulli_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__bernoulli_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::bernoulli_distribution< double,policies::policy< > > const *","success_fraction", 1, self ));
}
arg1 = reinterpret_cast< boost::math::bernoulli_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::bernoulli_distribution< double,policies::policy< > > const *)arg1)->success_fraction();
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#support(*args) ⇒ Object
call-seq:
support -> std::pair< boost::math::bernoulli_distribution< double,policies::policy< > >::value_type,boost::math::bernoulli_distribution< double,policies::policy< > >::value_type >
An instance method.
6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 6305
SWIGINTERN VALUE
_wrap_Bernoulli_support(int argc, VALUE *argv, VALUE self) {
boost::math::bernoulli_distribution< double,policies::policy< > > *arg1 = (boost::math::bernoulli_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::bernoulli_distribution< double,policies::policy< > >::value_type,boost::math::bernoulli_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__bernoulli_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::bernoulli_distribution< double,policies::policy< > > const *","support", 1, self ));
}
arg1 = reinterpret_cast< boost::math::bernoulli_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_bernoulli_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__support((boost::math::bernoulli_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::bernoulli_distribution< double,policies::policy< > >::value_type
An instance method.
6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 6107
SWIGINTERN VALUE
_wrap_Bernoulli_variance(int argc, VALUE *argv, VALUE self) {
boost::math::bernoulli_distribution< double,policies::policy< > > *arg1 = (boost::math::bernoulli_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::bernoulli_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__bernoulli_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::bernoulli_distribution< double,policies::policy< > > const *","variance", 1, self ));
}
arg1 = reinterpret_cast< boost::math::bernoulli_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::bernoulli_distribution< double,policies::policy< > >::value_type)boost_math_bernoulli_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__variance((boost::math::bernoulli_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;
}
|