Class: BoostDistributions::InverseGamma

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::InverseGamma class

Instance Method Summary collapse

Constructor Details

#initialize(*args, self) ⇒ Object



20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 20247

SWIGINTERN VALUE _wrap_new_InverseGamma(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_InverseGamma__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_InverseGamma__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_InverseGamma__SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "InverseGamma.new", 
    "    InverseGamma.new(double l_shape, double l_scale)\n"
    "    InverseGamma.new(double l_shape)\n"
    "    InverseGamma.new()\n");
  
  return Qnil;
}

Instance Method Details

#cdf(*args, self) ⇒ Object

call-seq:

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

An instance method.



20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 20513

SWIGINTERN VALUE _wrap_InverseGamma_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_gamma_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_InverseGamma_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_gamma_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_InverseGamma_cdf__SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "cdf", 
    "    boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type cdf(boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type const &x, bool const &is_complement)\n"
    "    boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type cdf(boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type const &x)\n");
  
  return Qnil;
}

#chf(*args) ⇒ Object

call-seq:

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

An instance method.



20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 20786

SWIGINTERN VALUE
_wrap_InverseGamma_chf(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_gamma_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gamma_distribution< double,policies::policy< > > *) 0 ;
  boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type temp2 ;
  double val2 ;
  int ecode2 = 0 ;
  boost::math::inverse_gamma_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_gamma_distributionT_double_policies__policyT_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gamma_distribution< double,policies::policy< > > const *","chf", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_gamma_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_gamma_distribution< double,policies::policy< > >::value_type","chf", 2, argv[0] ));
  } 
  temp2 = static_cast< boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type >(val2);
  arg2 = &temp2;
  try {
    result = (boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gamma_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__chf((boost::math::inverse_gamma_distribution< double,policies::policy< > > const *)arg1,(double const &)*arg2);
  } catch(std::logic_error &_e) {
    SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
  } catch(std::runtime_error &_e) {
    SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
  }
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#hazard(*args) ⇒ Object

call-seq:

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

An instance method.



20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 20737

SWIGINTERN VALUE
_wrap_InverseGamma_hazard(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_gamma_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gamma_distribution< double,policies::policy< > > *) 0 ;
  boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type temp2 ;
  double val2 ;
  int ecode2 = 0 ;
  boost::math::inverse_gamma_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_gamma_distributionT_double_policies__policyT_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gamma_distribution< double,policies::policy< > > const *","hazard", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_gamma_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_gamma_distribution< double,policies::policy< > >::value_type","hazard", 2, argv[0] ));
  } 
  temp2 = static_cast< boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type >(val2);
  arg2 = &temp2;
  try {
    result = (boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gamma_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__hazard((boost::math::inverse_gamma_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_gamma_distribution< double,policies::policy< > >::value_type

An instance method.



21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 21069

SWIGINTERN VALUE
_wrap_InverseGamma_kurtosis(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_gamma_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gamma_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_gamma_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_gamma_distributionT_double_policies__policyT_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gamma_distribution< double,policies::policy< > > const *","kurtosis", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_gamma_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = (boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gamma_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis((boost::math::inverse_gamma_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_gamma_distribution< double,policies::policy< > >::value_type

An instance method.



21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 21108

SWIGINTERN VALUE
_wrap_InverseGamma_kurtosis_excess(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_gamma_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gamma_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_gamma_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_gamma_distributionT_double_policies__policyT_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gamma_distribution< double,policies::policy< > > const *","kurtosis_excess", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_gamma_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = (boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gamma_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__kurtosis_excess((boost::math::inverse_gamma_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_gamma_distribution< double,policies::policy< > >::value_type

An instance method.



20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 20835

SWIGINTERN VALUE
_wrap_InverseGamma_mean(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_gamma_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gamma_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_gamma_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_gamma_distributionT_double_policies__policyT_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gamma_distribution< double,policies::policy< > > const *","mean", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_gamma_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = (boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gamma_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mean((boost::math::inverse_gamma_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_gamma_distribution< double,policies::policy< > >::value_type

An instance method.



20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 20874

SWIGINTERN VALUE
_wrap_InverseGamma_median(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_gamma_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gamma_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_gamma_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_gamma_distributionT_double_policies__policyT_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gamma_distribution< double,policies::policy< > > const *","median", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_gamma_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = (boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gamma_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__median((boost::math::inverse_gamma_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_gamma_distribution< double,policies::policy< > >::value_type

An instance method.



20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 20913

SWIGINTERN VALUE
_wrap_InverseGamma_mode(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_gamma_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gamma_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_gamma_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_gamma_distributionT_double_policies__policyT_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gamma_distribution< double,policies::policy< > > const *","mode", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_gamma_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = (boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gamma_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__mode((boost::math::inverse_gamma_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_gamma_distribution< double,policies::policy< > >::value_type const & x) -> boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type

An instance method.



20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 20372

SWIGINTERN VALUE
_wrap_InverseGamma_pdf(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_gamma_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gamma_distribution< double,policies::policy< > > *) 0 ;
  boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type temp2 ;
  double val2 ;
  int ecode2 = 0 ;
  boost::math::inverse_gamma_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_gamma_distributionT_double_policies__policyT_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gamma_distribution< double,policies::policy< > > const *","pdf", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_gamma_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_gamma_distribution< double,policies::policy< > >::value_type","pdf", 2, argv[0] ));
  } 
  temp2 = static_cast< boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type >(val2);
  arg2 = &temp2;
  try {
    result = (boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gamma_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__pdf((boost::math::inverse_gamma_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_gamma_distribution< double,policies::policy< > >::value_type const & p,
bool const & is_complement=False) -> boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type
quantile(boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type const & p) -> boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type

An instance method.



20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 20671

SWIGINTERN VALUE _wrap_InverseGamma_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_gamma_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_InverseGamma_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_gamma_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_InverseGamma_quantile__SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "quantile", 
    "    boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type quantile(boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type const &p, bool const &is_complement)\n"
    "    boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type quantile(boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type const &p)\n");
  
  return Qnil;
}

#range(*args) ⇒ Object

call-seq:

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

An instance method.



21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 21147

SWIGINTERN VALUE
_wrap_InverseGamma_range(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_gamma_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gamma_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::pair< boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type,boost::math::inverse_gamma_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_gamma_distributionT_double_policies__policyT_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gamma_distribution< double,policies::policy< > > const *","range", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_gamma_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = boost_math_inverse_gamma_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__range((boost::math::inverse_gamma_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.



20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 20339

SWIGINTERN VALUE
_wrap_InverseGamma_scale(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_gamma_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gamma_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_gamma_distributionT_double_policies__policyT_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gamma_distribution< double,policies::policy< > > const *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_gamma_distribution< double,policies::policy< > > * >(argp1);
  result = (double)((boost::math::inverse_gamma_distribution< double,policies::policy< > > const *)arg1)->scale();
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#shape(*args) ⇒ Object

call-seq:

shape -> double

An instance method.



20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 20306

SWIGINTERN VALUE
_wrap_InverseGamma_shape(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_gamma_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gamma_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_gamma_distributionT_double_policies__policyT_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gamma_distribution< double,policies::policy< > > const *","shape", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_gamma_distribution< double,policies::policy< > > * >(argp1);
  result = (double)((boost::math::inverse_gamma_distribution< double,policies::policy< > > const *)arg1)->shape();
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#skewness(*args) ⇒ Object

call-seq:

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

An instance method.



21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 21030

SWIGINTERN VALUE
_wrap_InverseGamma_skewness(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_gamma_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gamma_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_gamma_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_gamma_distributionT_double_policies__policyT_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gamma_distribution< double,policies::policy< > > const *","skewness", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_gamma_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = (boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gamma_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__skewness((boost::math::inverse_gamma_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_gamma_distribution< double,policies::policy< > >::value_type

An instance method.



20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 20952

SWIGINTERN VALUE
_wrap_InverseGamma_standard_deviation(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_gamma_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gamma_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_gamma_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_gamma_distributionT_double_policies__policyT_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gamma_distribution< double,policies::policy< > > const *","standard_deviation", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_gamma_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = (boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gamma_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__standard_deviation((boost::math::inverse_gamma_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_gamma_distribution< double,policies::policy< > >::value_type,boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type >

An instance method.



21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 21189

SWIGINTERN VALUE
_wrap_InverseGamma_support(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_gamma_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gamma_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::pair< boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type,boost::math::inverse_gamma_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_gamma_distributionT_double_policies__policyT_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gamma_distribution< double,policies::policy< > > const *","support", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_gamma_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = boost_math_inverse_gamma_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__support((boost::math::inverse_gamma_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_gamma_distribution< double,policies::policy< > >::value_type

An instance method.



20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
# File 'ext/boost_distributions/BoostDistributions/BoostDistributions_wrap.cxx', line 20991

SWIGINTERN VALUE
_wrap_InverseGamma_variance(int argc, VALUE *argv, VALUE self) {
  boost::math::inverse_gamma_distribution< double,policies::policy< > > *arg1 = (boost::math::inverse_gamma_distribution< double,policies::policy< > > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  boost::math::inverse_gamma_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_gamma_distributionT_double_policies__policyT_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "boost::math::inverse_gamma_distribution< double,policies::policy< > > const *","variance", 1, self )); 
  }
  arg1 = reinterpret_cast< boost::math::inverse_gamma_distribution< double,policies::policy< > > * >(argp1);
  try {
    result = (boost::math::inverse_gamma_distribution< double,policies::policy< > >::value_type)boost_math_inverse_gamma_distribution_Sl_double_Sc_policies_policy_Sl__Sg__Sg__variance((boost::math::inverse_gamma_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;
}