Class: BoostDistributions::KolmogorovSmirnov
- Inherits:
-
Object
- Object
- BoostDistributions::KolmogorovSmirnov
- Defined in:
- ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx,
ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx
Overview
Proxy of C++ BoostDistributions::KolmogorovSmirnov class
Instance Method Summary collapse
-
#cdf(*args, self) ⇒ Object
call-seq: cdf(boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const & x, bool const & is_complement=False) -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type cdf(boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type.
-
#chf(*args) ⇒ Object
call-seq: chf(boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type.
-
#hazard(*args) ⇒ Object
call-seq: hazard(boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type.
-
#initialize(*args) ⇒ Object
constructor
call-seq: KolmogorovSmirnov.new(double n).
-
#kurtosis(*args) ⇒ Object
call-seq: kurtosis -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type.
-
#kurtosis_excess(*args) ⇒ Object
call-seq: kurtosis_excess -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type.
-
#mean(*args) ⇒ Object
call-seq: mean -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type.
-
#median(*args) ⇒ Object
call-seq: median -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type.
-
#mode(*args) ⇒ Object
call-seq: mode -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type.
-
#number_of_observations(*args) ⇒ Object
call-seq: number_of_observations -> double.
-
#pdf(*args) ⇒ Object
call-seq: pdf(boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type.
-
#quantile(*args, self) ⇒ Object
call-seq: quantile(boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const & p, bool const & is_complement=False) -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type quantile(boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type.
-
#range(*args) ⇒ Object
call-seq: range -> std::pair< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type,boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type >.
-
#skewness(*args) ⇒ Object
call-seq: skewness -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type.
-
#standard_deviation(*args) ⇒ Object
call-seq: standard_deviation -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type.
-
#support(*args) ⇒ Object
call-seq: support -> std::pair< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type,boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type >.
-
#variance(*args) ⇒ Object
call-seq: variance -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type.
Constructor Details
#initialize(*args) ⇒ Object
22385 22386 22387 22388 22389 22390 22391 22392 22393 22394 22395 22396 22397 22398 22399 22400 22401 22402 22403 22404 22405 22406 22407 22408 22409 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22385
SWIGINTERN VALUE
_wrap_new_KolmogorovSmirnov(int argc, VALUE *argv, VALUE self) {
double arg1 ;
double val1 ;
int ecode1 = 0 ;
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *result = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_double(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","kolmogorov_smirnov_distribution<(double,policies::policy<()>)>", 1, argv[0] ));
}
arg1 = static_cast< double >(val1);
try {
result = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *)new boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >(arg1);
DATA_PTR(self) = result;
} catch(std::logic_error &_e) {
SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
}
return self;
fail:
return Qnil;
}
|
Instance Method Details
#cdf(*args, self) ⇒ Object
call-seq:
cdf(boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const & x,
bool const & is_complement=False) -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type
cdf(boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type
An instance method.
22595 22596 22597 22598 22599 22600 22601 22602 22603 22604 22605 22606 22607 22608 22609 22610 22611 22612 22613 22614 22615 22616 22617 22618 22619 22620 22621 22622 22623 22624 22625 22626 22627 22628 22629 22630 22631 22632 22633 22634 22635 22636 22637 22638 22639 22640 22641 22642 22643 22644 22645 22646 22647 22648 22649 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22595
SWIGINTERN VALUE _wrap_KolmogorovSmirnov_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__kolmogorov_smirnov_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_KolmogorovSmirnov_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__kolmogorov_smirnov_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_KolmogorovSmirnov_cdf__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "cdf",
" boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type cdf(boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const &x, bool const &is_complement)\n"
" boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type cdf(boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const &x)\n");
return Qnil;
}
|
#chf(*args) ⇒ Object
call-seq:
chf(boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type
An instance method.
22868 22869 22870 22871 22872 22873 22874 22875 22876 22877 22878 22879 22880 22881 22882 22883 22884 22885 22886 22887 22888 22889 22890 22891 22892 22893 22894 22895 22896 22897 22898 22899 22900 22901 22902 22903 22904 22905 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22868
SWIGINTERN VALUE
_wrap_KolmogorovSmirnov_chf(int argc, VALUE *argv, VALUE self) {
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *arg1 = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *) 0 ;
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::kolmogorov_smirnov_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__kolmogorov_smirnov_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > const *","chf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::kolmogorov_smirnov_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::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type","chf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type)boost_math_kolmogorov_smirnov_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__chf((boost::math::kolmogorov_smirnov_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::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type
An instance method.
22819 22820 22821 22822 22823 22824 22825 22826 22827 22828 22829 22830 22831 22832 22833 22834 22835 22836 22837 22838 22839 22840 22841 22842 22843 22844 22845 22846 22847 22848 22849 22850 22851 22852 22853 22854 22855 22856 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22819
SWIGINTERN VALUE
_wrap_KolmogorovSmirnov_hazard(int argc, VALUE *argv, VALUE self) {
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *arg1 = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *) 0 ;
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::kolmogorov_smirnov_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__kolmogorov_smirnov_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > const *","hazard", 1, self ));
}
arg1 = reinterpret_cast< boost::math::kolmogorov_smirnov_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::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type","hazard", 2, argv[0] ));
}
temp2 = static_cast< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type)boost_math_kolmogorov_smirnov_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__hazard((boost::math::kolmogorov_smirnov_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::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type
An instance method.
23151 23152 23153 23154 23155 23156 23157 23158 23159 23160 23161 23162 23163 23164 23165 23166 23167 23168 23169 23170 23171 23172 23173 23174 23175 23176 23177 23178 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 23151
SWIGINTERN VALUE
_wrap_KolmogorovSmirnov_kurtosis(int argc, VALUE *argv, VALUE self) {
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *arg1 = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::kolmogorov_smirnov_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__kolmogorov_smirnov_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > const *","kurtosis", 1, self ));
}
arg1 = reinterpret_cast< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type)boost_math_kolmogorov_smirnov_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis((boost::math::kolmogorov_smirnov_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::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type
An instance method.
23190 23191 23192 23193 23194 23195 23196 23197 23198 23199 23200 23201 23202 23203 23204 23205 23206 23207 23208 23209 23210 23211 23212 23213 23214 23215 23216 23217 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 23190
SWIGINTERN VALUE
_wrap_KolmogorovSmirnov_kurtosis_excess(int argc, VALUE *argv, VALUE self) {
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *arg1 = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::kolmogorov_smirnov_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__kolmogorov_smirnov_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > const *","kurtosis_excess", 1, self ));
}
arg1 = reinterpret_cast< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type)boost_math_kolmogorov_smirnov_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis_excess((boost::math::kolmogorov_smirnov_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::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type
An instance method.
22917 22918 22919 22920 22921 22922 22923 22924 22925 22926 22927 22928 22929 22930 22931 22932 22933 22934 22935 22936 22937 22938 22939 22940 22941 22942 22943 22944 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22917
SWIGINTERN VALUE
_wrap_KolmogorovSmirnov_mean(int argc, VALUE *argv, VALUE self) {
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *arg1 = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::kolmogorov_smirnov_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__kolmogorov_smirnov_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > const *","mean", 1, self ));
}
arg1 = reinterpret_cast< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type)boost_math_kolmogorov_smirnov_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mean((boost::math::kolmogorov_smirnov_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::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type
An instance method.
22956 22957 22958 22959 22960 22961 22962 22963 22964 22965 22966 22967 22968 22969 22970 22971 22972 22973 22974 22975 22976 22977 22978 22979 22980 22981 22982 22983 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22956
SWIGINTERN VALUE
_wrap_KolmogorovSmirnov_median(int argc, VALUE *argv, VALUE self) {
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *arg1 = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::kolmogorov_smirnov_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__kolmogorov_smirnov_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > const *","median", 1, self ));
}
arg1 = reinterpret_cast< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type)boost_math_kolmogorov_smirnov_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__median((boost::math::kolmogorov_smirnov_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::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type
An instance method.
22995 22996 22997 22998 22999 23000 23001 23002 23003 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 23022 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22995
SWIGINTERN VALUE
_wrap_KolmogorovSmirnov_mode(int argc, VALUE *argv, VALUE self) {
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *arg1 = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::kolmogorov_smirnov_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__kolmogorov_smirnov_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > const *","mode", 1, self ));
}
arg1 = reinterpret_cast< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type)boost_math_kolmogorov_smirnov_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mode((boost::math::kolmogorov_smirnov_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;
}
|
#number_of_observations(*args) ⇒ Object
call-seq:
number_of_observations -> double
An instance method.
22421 22422 22423 22424 22425 22426 22427 22428 22429 22430 22431 22432 22433 22434 22435 22436 22437 22438 22439 22440 22441 22442 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22421
SWIGINTERN VALUE
_wrap_KolmogorovSmirnov_number_of_observations(int argc, VALUE *argv, VALUE self) {
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *arg1 = (boost::math::kolmogorov_smirnov_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__kolmogorov_smirnov_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > const *","number_of_observations", 1, self ));
}
arg1 = reinterpret_cast< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > const *)arg1)->number_of_observations();
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#pdf(*args) ⇒ Object
call-seq:
pdf(boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type
An instance method.
22454 22455 22456 22457 22458 22459 22460 22461 22462 22463 22464 22465 22466 22467 22468 22469 22470 22471 22472 22473 22474 22475 22476 22477 22478 22479 22480 22481 22482 22483 22484 22485 22486 22487 22488 22489 22490 22491 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22454
SWIGINTERN VALUE
_wrap_KolmogorovSmirnov_pdf(int argc, VALUE *argv, VALUE self) {
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *arg1 = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *) 0 ;
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::kolmogorov_smirnov_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__kolmogorov_smirnov_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > const *","pdf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::kolmogorov_smirnov_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::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type","pdf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type)boost_math_kolmogorov_smirnov_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__pdf((boost::math::kolmogorov_smirnov_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::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const & p,
bool const & is_complement=False) -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type
quantile(boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type
An instance method.
22753 22754 22755 22756 22757 22758 22759 22760 22761 22762 22763 22764 22765 22766 22767 22768 22769 22770 22771 22772 22773 22774 22775 22776 22777 22778 22779 22780 22781 22782 22783 22784 22785 22786 22787 22788 22789 22790 22791 22792 22793 22794 22795 22796 22797 22798 22799 22800 22801 22802 22803 22804 22805 22806 22807 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 22753
SWIGINTERN VALUE _wrap_KolmogorovSmirnov_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__kolmogorov_smirnov_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_KolmogorovSmirnov_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__kolmogorov_smirnov_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_KolmogorovSmirnov_quantile__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "quantile",
" boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type quantile(boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const &p, bool const &is_complement)\n"
" boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type quantile(boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type const &p)\n");
return Qnil;
}
|
#range(*args) ⇒ Object
call-seq:
range -> std::pair< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type,boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type >
An instance method.
23229 23230 23231 23232 23233 23234 23235 23236 23237 23238 23239 23240 23241 23242 23243 23244 23245 23246 23247 23248 23249 23250 23251 23252 23253 23254 23255 23256 23257 23258 23259 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 23229
SWIGINTERN VALUE
_wrap_KolmogorovSmirnov_range(int argc, VALUE *argv, VALUE self) {
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *arg1 = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type,boost::math::kolmogorov_smirnov_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__kolmogorov_smirnov_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > const *","range", 1, self ));
}
arg1 = reinterpret_cast< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_kolmogorov_smirnov_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__range((boost::math::kolmogorov_smirnov_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::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type
An instance method.
23112 23113 23114 23115 23116 23117 23118 23119 23120 23121 23122 23123 23124 23125 23126 23127 23128 23129 23130 23131 23132 23133 23134 23135 23136 23137 23138 23139 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 23112
SWIGINTERN VALUE
_wrap_KolmogorovSmirnov_skewness(int argc, VALUE *argv, VALUE self) {
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *arg1 = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::kolmogorov_smirnov_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__kolmogorov_smirnov_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > const *","skewness", 1, self ));
}
arg1 = reinterpret_cast< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type)boost_math_kolmogorov_smirnov_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__skewness((boost::math::kolmogorov_smirnov_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::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type
An instance method.
23034 23035 23036 23037 23038 23039 23040 23041 23042 23043 23044 23045 23046 23047 23048 23049 23050 23051 23052 23053 23054 23055 23056 23057 23058 23059 23060 23061 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 23034
SWIGINTERN VALUE
_wrap_KolmogorovSmirnov_standard_deviation(int argc, VALUE *argv, VALUE self) {
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *arg1 = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::kolmogorov_smirnov_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__kolmogorov_smirnov_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > const *","standard_deviation", 1, self ));
}
arg1 = reinterpret_cast< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type)boost_math_kolmogorov_smirnov_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__standard_deviation((boost::math::kolmogorov_smirnov_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::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type,boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type >
An instance method.
23271 23272 23273 23274 23275 23276 23277 23278 23279 23280 23281 23282 23283 23284 23285 23286 23287 23288 23289 23290 23291 23292 23293 23294 23295 23296 23297 23298 23299 23300 23301 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 23271
SWIGINTERN VALUE
_wrap_KolmogorovSmirnov_support(int argc, VALUE *argv, VALUE self) {
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *arg1 = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type,boost::math::kolmogorov_smirnov_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__kolmogorov_smirnov_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > const *","support", 1, self ));
}
arg1 = reinterpret_cast< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_kolmogorov_smirnov_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__support((boost::math::kolmogorov_smirnov_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::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type
An instance method.
23073 23074 23075 23076 23077 23078 23079 23080 23081 23082 23083 23084 23085 23086 23087 23088 23089 23090 23091 23092 23093 23094 23095 23096 23097 23098 23099 23100 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 23073
SWIGINTERN VALUE
_wrap_KolmogorovSmirnov_variance(int argc, VALUE *argv, VALUE self) {
boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *arg1 = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::kolmogorov_smirnov_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__kolmogorov_smirnov_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > const *","variance", 1, self ));
}
arg1 = reinterpret_cast< boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::kolmogorov_smirnov_distribution< double,policies::policy< > >::value_type)boost_math_kolmogorov_smirnov_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__variance((boost::math::kolmogorov_smirnov_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;
}
|