Class: BoostDistributions::ChiSquared
- Inherits:
-
Object
- Object
- BoostDistributions::ChiSquared
- Defined in:
- ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx,
ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx
Overview
Proxy of C++ BoostDistributions::ChiSquared class
Class Method Summary collapse
-
.find_degrees_of_freedom(*args, self) ⇒ Object
call-seq: find_degrees_of_freedom(double difference_from_variance, double alpha, double beta, double variance, double hint=100) -> double find_degrees_of_freedom(double difference_from_variance, double alpha, double beta, double variance) -> double.
Instance Method Summary collapse
-
#cdf(*args, self) ⇒ Object
call-seq: cdf(boost::math::chi_squared_distribution< double,policies::policy< > >::value_type const & x, bool const & is_complement=False) -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type cdf(boost::math::chi_squared_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type.
-
#chf(*args) ⇒ Object
call-seq: chf(boost::math::chi_squared_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type.
-
#degrees_of_freedom(*args) ⇒ Object
call-seq: degrees_of_freedom -> double.
-
#hazard(*args) ⇒ Object
call-seq: hazard(boost::math::chi_squared_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type.
-
#initialize(*args) ⇒ Object
constructor
call-seq: ChiSquared.new(double i).
-
#kurtosis(*args) ⇒ Object
call-seq: kurtosis -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type.
-
#kurtosis_excess(*args) ⇒ Object
call-seq: kurtosis_excess -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type.
-
#mean(*args) ⇒ Object
call-seq: mean -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type.
-
#median(*args) ⇒ Object
call-seq: median -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type.
-
#mode(*args) ⇒ Object
call-seq: mode -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type.
-
#pdf(*args) ⇒ Object
call-seq: pdf(boost::math::chi_squared_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type.
-
#quantile(*args, self) ⇒ Object
call-seq: quantile(boost::math::chi_squared_distribution< double,policies::policy< > >::value_type const & p, bool const & is_complement=False) -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type quantile(boost::math::chi_squared_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type.
-
#range(*args) ⇒ Object
call-seq: range -> std::pair< boost::math::chi_squared_distribution< double,policies::policy< > >::value_type,boost::math::chi_squared_distribution< double,policies::policy< > >::value_type >.
-
#skewness(*args) ⇒ Object
call-seq: skewness -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type.
-
#standard_deviation(*args) ⇒ Object
call-seq: standard_deviation -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type.
-
#support(*args) ⇒ Object
call-seq: support -> std::pair< boost::math::chi_squared_distribution< double,policies::policy< > >::value_type,boost::math::chi_squared_distribution< double,policies::policy< > >::value_type >.
-
#variance(*args) ⇒ Object
call-seq: variance -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type.
Constructor Details
#initialize(*args) ⇒ Object
10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 10210
SWIGINTERN VALUE
_wrap_new_ChiSquared(int argc, VALUE *argv, VALUE self) {
double arg1 ;
double val1 ;
int ecode1 = 0 ;
boost::math::chi_squared_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","chi_squared_distribution<(double,policies::policy<()>)>", 1, argv[0] ));
}
arg1 = static_cast< double >(val1);
try {
result = (boost::math::chi_squared_distribution< double,policies::policy< > > *)new boost::math::chi_squared_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;
}
|
Class Method Details
.find_degrees_of_freedom(*args, self) ⇒ Object
call-seq:
find_degrees_of_freedom(double difference_from_variance, double alpha, double beta, double variance, double hint=100) -> double
find_degrees_of_freedom(double difference_from_variance, double alpha, double beta, double variance) -> double
A class method.
10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 10392
SWIGINTERN VALUE _wrap_ChiSquared_find_degrees_of_freedom(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[5];
int ii;
argc = nargs;
if (argc > 5) SWIG_fail;
for (ii = 0; (ii < argc); ++ii) {
argv[ii] = args[ii];
}
if (argc == 4) {
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) {
{
int res = SWIG_AsVal_double(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_double(argv[3], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_ChiSquared_find_degrees_of_freedom__SWIG_1(nargs, args, self);
}
}
}
}
}
if (argc == 5) {
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) {
{
int res = SWIG_AsVal_double(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_double(argv[3], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_double(argv[4], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_ChiSquared_find_degrees_of_freedom__SWIG_0(nargs, args, self);
}
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 5, "ChiSquared.find_degrees_of_freedom",
" double ChiSquared.find_degrees_of_freedom(double difference_from_variance, double alpha, double beta, double variance, double hint)\n"
" double ChiSquared.find_degrees_of_freedom(double difference_from_variance, double alpha, double beta, double variance)\n");
return Qnil;
}
|
Instance Method Details
#cdf(*args, self) ⇒ Object
call-seq:
cdf(boost::math::chi_squared_distribution< double,policies::policy< > >::value_type const & x,
bool const & is_complement=False) -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type
cdf(boost::math::chi_squared_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type
An instance method.
10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 10624
SWIGINTERN VALUE _wrap_ChiSquared_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__chi_squared_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_ChiSquared_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__chi_squared_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_ChiSquared_cdf__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "cdf",
" boost::math::chi_squared_distribution< double,policies::policy< > >::value_type cdf(boost::math::chi_squared_distribution< double,policies::policy< > >::value_type const &x, bool const &is_complement)\n"
" boost::math::chi_squared_distribution< double,policies::policy< > >::value_type cdf(boost::math::chi_squared_distribution< double,policies::policy< > >::value_type const &x)\n");
return Qnil;
}
|
#chf(*args) ⇒ Object
call-seq:
chf(boost::math::chi_squared_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type
An instance method.
10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 10897
SWIGINTERN VALUE
_wrap_ChiSquared_chf(int argc, VALUE *argv, VALUE self) {
boost::math::chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::chi_squared_distribution< double,policies::policy< > > *) 0 ;
boost::math::chi_squared_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::chi_squared_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::chi_squared_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__chi_squared_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::chi_squared_distribution< double,policies::policy< > > const *","chf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::chi_squared_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::chi_squared_distribution< double,policies::policy< > >::value_type","chf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::chi_squared_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__chf((boost::math::chi_squared_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;
}
|
#degrees_of_freedom(*args) ⇒ Object
call-seq:
degrees_of_freedom -> double
An instance method.
10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 10246
SWIGINTERN VALUE
_wrap_ChiSquared_degrees_of_freedom(int argc, VALUE *argv, VALUE self) {
boost::math::chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::chi_squared_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__chi_squared_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::chi_squared_distribution< double,policies::policy< > > const *","degrees_of_freedom", 1, self ));
}
arg1 = reinterpret_cast< boost::math::chi_squared_distribution< double,policies::policy< > > * >(argp1);
result = (double)((boost::math::chi_squared_distribution< double,policies::policy< > > const *)arg1)->degrees_of_freedom();
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#hazard(*args) ⇒ Object
call-seq:
hazard(boost::math::chi_squared_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type
An instance method.
10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 10848
SWIGINTERN VALUE
_wrap_ChiSquared_hazard(int argc, VALUE *argv, VALUE self) {
boost::math::chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::chi_squared_distribution< double,policies::policy< > > *) 0 ;
boost::math::chi_squared_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::chi_squared_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::chi_squared_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__chi_squared_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::chi_squared_distribution< double,policies::policy< > > const *","hazard", 1, self ));
}
arg1 = reinterpret_cast< boost::math::chi_squared_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::chi_squared_distribution< double,policies::policy< > >::value_type","hazard", 2, argv[0] ));
}
temp2 = static_cast< boost::math::chi_squared_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__hazard((boost::math::chi_squared_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::chi_squared_distribution< double,policies::policy< > >::value_type
An instance method.
11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 11180
SWIGINTERN VALUE
_wrap_ChiSquared_kurtosis(int argc, VALUE *argv, VALUE self) {
boost::math::chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::chi_squared_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::chi_squared_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__chi_squared_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::chi_squared_distribution< double,policies::policy< > > const *","kurtosis", 1, self ));
}
arg1 = reinterpret_cast< boost::math::chi_squared_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis((boost::math::chi_squared_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::chi_squared_distribution< double,policies::policy< > >::value_type
An instance method.
11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 11219
SWIGINTERN VALUE
_wrap_ChiSquared_kurtosis_excess(int argc, VALUE *argv, VALUE self) {
boost::math::chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::chi_squared_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::chi_squared_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__chi_squared_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::chi_squared_distribution< double,policies::policy< > > const *","kurtosis_excess", 1, self ));
}
arg1 = reinterpret_cast< boost::math::chi_squared_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis_excess((boost::math::chi_squared_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::chi_squared_distribution< double,policies::policy< > >::value_type
An instance method.
10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 10946
SWIGINTERN VALUE
_wrap_ChiSquared_mean(int argc, VALUE *argv, VALUE self) {
boost::math::chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::chi_squared_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::chi_squared_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__chi_squared_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::chi_squared_distribution< double,policies::policy< > > const *","mean", 1, self ));
}
arg1 = reinterpret_cast< boost::math::chi_squared_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mean((boost::math::chi_squared_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::chi_squared_distribution< double,policies::policy< > >::value_type
An instance method.
10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 10985
SWIGINTERN VALUE
_wrap_ChiSquared_median(int argc, VALUE *argv, VALUE self) {
boost::math::chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::chi_squared_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::chi_squared_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__chi_squared_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::chi_squared_distribution< double,policies::policy< > > const *","median", 1, self ));
}
arg1 = reinterpret_cast< boost::math::chi_squared_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__median((boost::math::chi_squared_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::chi_squared_distribution< double,policies::policy< > >::value_type
An instance method.
11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 11024
SWIGINTERN VALUE
_wrap_ChiSquared_mode(int argc, VALUE *argv, VALUE self) {
boost::math::chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::chi_squared_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::chi_squared_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__chi_squared_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::chi_squared_distribution< double,policies::policy< > > const *","mode", 1, self ));
}
arg1 = reinterpret_cast< boost::math::chi_squared_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mode((boost::math::chi_squared_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::chi_squared_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type
An instance method.
10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 10483
SWIGINTERN VALUE
_wrap_ChiSquared_pdf(int argc, VALUE *argv, VALUE self) {
boost::math::chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::chi_squared_distribution< double,policies::policy< > > *) 0 ;
boost::math::chi_squared_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::chi_squared_distribution< double,policies::policy< > >::value_type temp2 ;
double val2 ;
int ecode2 = 0 ;
boost::math::chi_squared_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__chi_squared_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::chi_squared_distribution< double,policies::policy< > > const *","pdf", 1, self ));
}
arg1 = reinterpret_cast< boost::math::chi_squared_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::chi_squared_distribution< double,policies::policy< > >::value_type","pdf", 2, argv[0] ));
}
temp2 = static_cast< boost::math::chi_squared_distribution< double,policies::policy< > >::value_type >(val2);
arg2 = &temp2;
try {
result = (boost::math::chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__pdf((boost::math::chi_squared_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::chi_squared_distribution< double,policies::policy< > >::value_type const & p,
bool const & is_complement=False) -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type
quantile(boost::math::chi_squared_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::chi_squared_distribution< double,policies::policy< > >::value_type
An instance method.
10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 10782
SWIGINTERN VALUE _wrap_ChiSquared_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__chi_squared_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_ChiSquared_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__chi_squared_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_ChiSquared_quantile__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "quantile",
" boost::math::chi_squared_distribution< double,policies::policy< > >::value_type quantile(boost::math::chi_squared_distribution< double,policies::policy< > >::value_type const &p, bool const &is_complement)\n"
" boost::math::chi_squared_distribution< double,policies::policy< > >::value_type quantile(boost::math::chi_squared_distribution< double,policies::policy< > >::value_type const &p)\n");
return Qnil;
}
|
#range(*args) ⇒ Object
call-seq:
range -> std::pair< boost::math::chi_squared_distribution< double,policies::policy< > >::value_type,boost::math::chi_squared_distribution< double,policies::policy< > >::value_type >
An instance method.
11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 11258
SWIGINTERN VALUE
_wrap_ChiSquared_range(int argc, VALUE *argv, VALUE self) {
boost::math::chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::chi_squared_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::chi_squared_distribution< double,policies::policy< > >::value_type,boost::math::chi_squared_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__chi_squared_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::chi_squared_distribution< double,policies::policy< > > const *","range", 1, self ));
}
arg1 = reinterpret_cast< boost::math::chi_squared_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__range((boost::math::chi_squared_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::chi_squared_distribution< double,policies::policy< > >::value_type
An instance method.
11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 11141
SWIGINTERN VALUE
_wrap_ChiSquared_skewness(int argc, VALUE *argv, VALUE self) {
boost::math::chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::chi_squared_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::chi_squared_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__chi_squared_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::chi_squared_distribution< double,policies::policy< > > const *","skewness", 1, self ));
}
arg1 = reinterpret_cast< boost::math::chi_squared_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__skewness((boost::math::chi_squared_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::chi_squared_distribution< double,policies::policy< > >::value_type
An instance method.
11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 11063
SWIGINTERN VALUE
_wrap_ChiSquared_standard_deviation(int argc, VALUE *argv, VALUE self) {
boost::math::chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::chi_squared_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::chi_squared_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__chi_squared_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::chi_squared_distribution< double,policies::policy< > > const *","standard_deviation", 1, self ));
}
arg1 = reinterpret_cast< boost::math::chi_squared_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__standard_deviation((boost::math::chi_squared_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::chi_squared_distribution< double,policies::policy< > >::value_type,boost::math::chi_squared_distribution< double,policies::policy< > >::value_type >
An instance method.
11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 11300
SWIGINTERN VALUE
_wrap_ChiSquared_support(int argc, VALUE *argv, VALUE self) {
boost::math::chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::chi_squared_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::pair< boost::math::chi_squared_distribution< double,policies::policy< > >::value_type,boost::math::chi_squared_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__chi_squared_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::chi_squared_distribution< double,policies::policy< > > const *","support", 1, self ));
}
arg1 = reinterpret_cast< boost::math::chi_squared_distribution< double,policies::policy< > > * >(argp1);
try {
result = boost_math_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__support((boost::math::chi_squared_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::chi_squared_distribution< double,policies::policy< > >::value_type
An instance method.
11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 |
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 11102
SWIGINTERN VALUE
_wrap_ChiSquared_variance(int argc, VALUE *argv, VALUE self) {
boost::math::chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::chi_squared_distribution< double,policies::policy< > > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
boost::math::chi_squared_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__chi_squared_distributionT_double_policies__policyT_t_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::chi_squared_distribution< double,policies::policy< > > const *","variance", 1, self ));
}
arg1 = reinterpret_cast< boost::math::chi_squared_distribution< double,policies::policy< > > * >(argp1);
try {
result = (boost::math::chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__variance((boost::math::chi_squared_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;
}
|