Class: BoostDistributions::InverseChiSquared

Inherits:
Object
  • Object
show all
Defined in:
ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx,
ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx

Overview

Proxy of C++ BoostDistributions::InverseChiSquared class

Instance Method Summary collapse

Constructor Details

#initialize(*args, self) ⇒ Object



19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 19150

SWIGINTERN VALUE _wrap_new_InverseChiSquared(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap_new_InverseChiSquared__SWIG_2(nargs, args, self);
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_InverseChiSquared__SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_InverseChiSquared__SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "InverseChiSquared.new", 
    "    InverseChiSquared.new(double df, double l_scale)\n"
    "    InverseChiSquared.new(double df)\n"
    "    InverseChiSquared.new()\n");
  
  return Qnil;
}

Instance Method Details

#cdf(*args, self) ⇒ Object

call-seq:

cdf(boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type const & x,
bool const & is_complement=False) -> boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type
cdf(boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type

An instance method.



19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 19416

SWIGINTERN VALUE _wrap_InverseChiSquared_cdf(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 4) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__math__inverse_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_InverseChiSquared_cdf__SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__math__inverse_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_InverseChiSquared_cdf__SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "cdf", 
    "    boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type cdf(boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type const &x, bool const &is_complement)\n"
    "    boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type cdf(boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type const &x)\n");
  
  return Qnil;
}

#chf(*args) ⇒ Object

call-seq:

chf(boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type

An instance method.



19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 19689

SWIGINTERN VALUE
_wrap_InverseChiSquared_chf(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *) 0 ;
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type temp2 ;
  double val2 ;
  int ecode2 = 0 ;
  boost::math::inverse_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__inverse_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::inverse_chi_squared_distribution< double,policies::policy< > > const *","chf", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_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::inverse_chi_squared_distribution< double,policies::policy< > >::value_type","chf", 2, argv[0] ));
  } 
  temp2 = static_cast< boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type >(val2);
  arg2 = &temp2;
  try {
    result = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_inverse_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__chf((boost::math::inverse_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.



19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 19209

SWIGINTERN VALUE
_wrap_InverseChiSquared_degrees_of_freedom(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_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__inverse_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::inverse_chi_squared_distribution< double,policies::policy< > > const *","degrees_of_freedom", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_chi_squared_distribution< double,policies::policy< > > * >(argp1);
  result = (double)((boost::math::inverse_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::inverse_chi_squared_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type

An instance method.



19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 19640

SWIGINTERN VALUE
_wrap_InverseChiSquared_hazard(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *) 0 ;
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type temp2 ;
  double val2 ;
  int ecode2 = 0 ;
  boost::math::inverse_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__inverse_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::inverse_chi_squared_distribution< double,policies::policy< > > const *","hazard", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_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::inverse_chi_squared_distribution< double,policies::policy< > >::value_type","hazard", 2, argv[0] ));
  } 
  temp2 = static_cast< boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type >(val2);
  arg2 = &temp2;
  try {
    result = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_inverse_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__hazard((boost::math::inverse_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::inverse_chi_squared_distribution< double,policies::policy< > >::value_type

An instance method.



19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 19972

SWIGINTERN VALUE
_wrap_InverseChiSquared_kurtosis(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_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__inverse_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::inverse_chi_squared_distribution< double,policies::policy< > > const *","kurtosis", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_chi_squared_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_inverse_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis((boost::math::inverse_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::inverse_chi_squared_distribution< double,policies::policy< > >::value_type

An instance method.



20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 20011

SWIGINTERN VALUE
_wrap_InverseChiSquared_kurtosis_excess(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_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__inverse_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::inverse_chi_squared_distribution< double,policies::policy< > > const *","kurtosis_excess", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_chi_squared_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_inverse_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis_excess((boost::math::inverse_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::inverse_chi_squared_distribution< double,policies::policy< > >::value_type

An instance method.



19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 19738

SWIGINTERN VALUE
_wrap_InverseChiSquared_mean(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_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__inverse_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::inverse_chi_squared_distribution< double,policies::policy< > > const *","mean", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_chi_squared_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_inverse_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mean((boost::math::inverse_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::inverse_chi_squared_distribution< double,policies::policy< > >::value_type

An instance method.



19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 19777

SWIGINTERN VALUE
_wrap_InverseChiSquared_median(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_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__inverse_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::inverse_chi_squared_distribution< double,policies::policy< > > const *","median", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_chi_squared_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_inverse_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__median((boost::math::inverse_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::inverse_chi_squared_distribution< double,policies::policy< > >::value_type

An instance method.



19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 19816

SWIGINTERN VALUE
_wrap_InverseChiSquared_mode(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_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__inverse_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::inverse_chi_squared_distribution< double,policies::policy< > > const *","mode", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_chi_squared_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_inverse_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mode((boost::math::inverse_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::inverse_chi_squared_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type

An instance method.



19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 19275

SWIGINTERN VALUE
_wrap_InverseChiSquared_pdf(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *) 0 ;
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type temp2 ;
  double val2 ;
  int ecode2 = 0 ;
  boost::math::inverse_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__inverse_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::inverse_chi_squared_distribution< double,policies::policy< > > const *","pdf", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_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::inverse_chi_squared_distribution< double,policies::policy< > >::value_type","pdf", 2, argv[0] ));
  } 
  temp2 = static_cast< boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type >(val2);
  arg2 = &temp2;
  try {
    result = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_inverse_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__pdf((boost::math::inverse_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::inverse_chi_squared_distribution< double,policies::policy< > >::value_type const & p,
bool const & is_complement=False) -> boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type
quantile(boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type

An instance method.



19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 19574

SWIGINTERN VALUE _wrap_InverseChiSquared_quantile(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 4) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__math__inverse_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_InverseChiSquared_quantile__SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_boost__math__inverse_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_InverseChiSquared_quantile__SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "quantile", 
    "    boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type quantile(boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type const &p, bool const &is_complement)\n"
    "    boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type quantile(boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type const &p)\n");
  
  return Qnil;
}

#range(*args) ⇒ Object

call-seq:

range -> std::pair< boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type,boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type >

An instance method.



20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 20050

SWIGINTERN VALUE
_wrap_InverseChiSquared_range(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::pair< boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type,boost::math::inverse_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__inverse_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::inverse_chi_squared_distribution< double,policies::policy< > > const *","range", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_chi_squared_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = boost_math_inverse_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__range((boost::math::inverse_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;
}

#scale(*args) ⇒ Object

call-seq:

scale -> double

An instance method.



19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 19242

SWIGINTERN VALUE
_wrap_InverseChiSquared_scale(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_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__inverse_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::inverse_chi_squared_distribution< double,policies::policy< > > const *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_chi_squared_distribution< double,policies::policy< > > * >(argp1);
  result = (double)((boost::math::inverse_chi_squared_distribution< double,policies::policy< > > const *)arg1)->scale();
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#skewness(*args) ⇒ Object

call-seq:

skewness -> boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type

An instance method.



19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 19933

SWIGINTERN VALUE
_wrap_InverseChiSquared_skewness(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_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__inverse_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::inverse_chi_squared_distribution< double,policies::policy< > > const *","skewness", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_chi_squared_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_inverse_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__skewness((boost::math::inverse_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::inverse_chi_squared_distribution< double,policies::policy< > >::value_type

An instance method.



19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 19855

SWIGINTERN VALUE
_wrap_InverseChiSquared_standard_deviation(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_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__inverse_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::inverse_chi_squared_distribution< double,policies::policy< > > const *","standard_deviation", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_chi_squared_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_inverse_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__standard_deviation((boost::math::inverse_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::inverse_chi_squared_distribution< double,policies::policy< > >::value_type,boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type >

An instance method.



20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 20092

SWIGINTERN VALUE
_wrap_InverseChiSquared_support(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::pair< boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type,boost::math::inverse_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__inverse_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::inverse_chi_squared_distribution< double,policies::policy< > > const *","support", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_chi_squared_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = boost_math_inverse_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__support((boost::math::inverse_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::inverse_chi_squared_distribution< double,policies::policy< > >::value_type

An instance method.



19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 19894

SWIGINTERN VALUE
_wrap_InverseChiSquared_variance(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_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__inverse_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::inverse_chi_squared_distribution< double,policies::policy< > > const *","variance", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_chi_squared_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = (boost::math::inverse_chi_squared_distribution< double,policies::policy< > >::value_type)boost_math_inverse_chi_squared_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__variance((boost::math::inverse_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;
}