numo-gsl 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +4 -0
- data/README.md +84 -0
- data/Rakefile +16 -0
- data/ext/numo/gsl/cdf/depend +17 -0
- data/ext/numo/gsl/cdf/erbpp_cdf.rb +44 -0
- data/ext/numo/gsl/cdf/extconf.rb +9 -0
- data/ext/numo/gsl/cdf/func_def.rb +610 -0
- data/ext/numo/gsl/const/const_def.rb +419 -0
- data/ext/numo/gsl/const/depend +17 -0
- data/ext/numo/gsl/const/erbpp_const.rb +30 -0
- data/ext/numo/gsl/const/extconf.rb +9 -0
- data/ext/numo/gsl/err/depend +1 -0
- data/ext/numo/gsl/err/err.c +22 -0
- data/ext/numo/gsl/err/extconf.rb +9 -0
- data/ext/numo/gsl/extconf_gsl.rb +44 -0
- data/ext/numo/gsl/fit/depend +17 -0
- data/ext/numo/gsl/fit/erbpp_fit.rb +74 -0
- data/ext/numo/gsl/fit/extconf.rb +9 -0
- data/ext/numo/gsl/fit/func_def.rb +129 -0
- data/ext/numo/gsl/fit/tmpl/check_1d.c +9 -0
- data/ext/numo/gsl/fit/tmpl/fit_linear.c +53 -0
- data/ext/numo/gsl/fit/tmpl/fit_linear_est.c +56 -0
- data/ext/numo/gsl/fit/tmpl/fit_mul.c +50 -0
- data/ext/numo/gsl/fit/tmpl/fit_mul_est.c +47 -0
- data/ext/numo/gsl/fit/tmpl/fit_wlinear.c +59 -0
- data/ext/numo/gsl/fit/tmpl/fit_wmul.c +56 -0
- data/ext/numo/gsl/gen/erbpp2.rb +306 -0
- data/ext/numo/gsl/gen/erbpp_gsl.rb +166 -0
- data/ext/numo/gsl/gen/func_parser.rb +520 -0
- data/ext/numo/gsl/gen/tmpl/c_DFloat_f_DFloat.c +40 -0
- data/ext/numo/gsl/gen/tmpl/c_DFloat_f_SZ.c +41 -0
- data/ext/numo/gsl/gen/tmpl/c_DFloat_f_SZ_x2.c +44 -0
- data/ext/numo/gsl/gen/tmpl/c_DFloat_x2_f_DFloat_x2.c +45 -0
- data/ext/numo/gsl/gen/tmpl/c_double_f_double.c +16 -0
- data/ext/numo/gsl/gen/tmpl/c_double_f_sizet.c +16 -0
- data/ext/numo/gsl/gen/tmpl/c_double_f_sizet_x2.c +17 -0
- data/ext/numo/gsl/gen/tmpl/c_double_f_void.c +15 -0
- data/ext/numo/gsl/gen/tmpl/c_double_x2_f_void.c +17 -0
- data/ext/numo/gsl/gen/tmpl/c_new_DFloat.c +29 -0
- data/ext/numo/gsl/gen/tmpl/c_new_double.c +22 -0
- data/ext/numo/gsl/gen/tmpl/c_new_f_other.c +25 -0
- data/ext/numo/gsl/gen/tmpl/c_new_sizet.c +22 -0
- data/ext/numo/gsl/gen/tmpl/c_new_sizet_double.c +23 -0
- data/ext/numo/gsl/gen/tmpl/c_new_sizet_x2.c +23 -0
- data/ext/numo/gsl/gen/tmpl/c_new_void.c +21 -0
- data/ext/numo/gsl/gen/tmpl/c_other_f_void.c +19 -0
- data/ext/numo/gsl/gen/tmpl/c_self_f_DFloat.c +46 -0
- data/ext/numo/gsl/gen/tmpl/c_self_f_DFloat_x2.c +41 -0
- data/ext/numo/gsl/gen/tmpl/c_self_f_DFloat_x3.c +44 -0
- data/ext/numo/gsl/gen/tmpl/c_self_f_DFloat_x4.c +47 -0
- data/ext/numo/gsl/gen/tmpl/c_self_f_SZ_x2_DFloat.c +45 -0
- data/ext/numo/gsl/gen/tmpl/c_self_f_double.c +17 -0
- data/ext/numo/gsl/gen/tmpl/c_self_f_other.c +17 -0
- data/ext/numo/gsl/gen/tmpl/c_self_f_sizet.c +21 -0
- data/ext/numo/gsl/gen/tmpl/c_self_f_void.c +14 -0
- data/ext/numo/gsl/gen/tmpl/c_sizet_f_void.c +15 -0
- data/ext/numo/gsl/gen/tmpl/c_sizet_x2_f_void.c +17 -0
- data/ext/numo/gsl/gen/tmpl/c_str_f_void.c +15 -0
- data/ext/numo/gsl/gen/tmpl/c_super_new_void.c +18 -0
- data/ext/numo/gsl/gen/tmpl/c_uint_f_void.c +15 -0
- data/ext/numo/gsl/gen/tmpl/c_ulong_f_void.c +15 -0
- data/ext/numo/gsl/gen/tmpl/c_void_f_double.c +17 -0
- data/ext/numo/gsl/gen/tmpl/c_void_f_double_x2.c +18 -0
- data/ext/numo/gsl/gen/tmpl/c_void_f_double_x4.c +20 -0
- data/ext/numo/gsl/gen/tmpl/c_void_f_ulong.c +17 -0
- data/ext/numo/gsl/gen/tmpl/c_void_f_void.c +14 -0
- data/ext/numo/gsl/gen/tmpl/cast_1d_contiguous.c +15 -0
- data/ext/numo/gsl/gen/tmpl/cast_2d_contiguous.c +15 -0
- data/ext/numo/gsl/gen/tmpl/class.c +26 -0
- data/ext/numo/gsl/gen/tmpl/create_new_narray.c +26 -0
- data/ext/numo/gsl/gen/tmpl/init_class.c +10 -0
- data/ext/numo/gsl/gen/tmpl/init_module.c +12 -0
- data/ext/numo/gsl/gen/tmpl/lib.c +41 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_Int_f_DFloat.c +38 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_DFloat.c +35 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_DFloat_Int.c +39 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_DFloat_UInt.c +39 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_DFloat_double.c +42 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_DFloat_double_x2.c +47 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_DFloat_int.c +42 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_DFloat_x2.c +38 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_DFloat_x3.c +41 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_Int.c +36 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_UInt.c +36 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_UInt32.c +36 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_UInt32_double.c +43 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_UInt32_double_uint.c +49 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_UInt32_double_x2.c +48 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_UInt32_uint_x3.c +51 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_UInt_double.c +43 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_UInt_double_uint.c +50 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_UInt_double_x2.c +48 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_UInt_uint_x3.c +51 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_int_DFloat.c +41 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_int_DFloat_x2.c +44 -0
- data/ext/numo/gsl/gen/tmpl/m_DFloat_f_int_x2_DFloat_x2.c +46 -0
- data/ext/numo/gsl/gen/tmpl/m_Int_f_DFloat.c +36 -0
- data/ext/numo/gsl/gen/tmpl/m_Int_f_DFloat_x3.c +42 -0
- data/ext/numo/gsl/gen/tmpl/m_Int_f_int_DFloat.c +42 -0
- data/ext/numo/gsl/gen/tmpl/m_Int_f_int_DFloat_x2.c +45 -0
- data/ext/numo/gsl/gen/tmpl/mod_func_noloop.c +54 -0
- data/ext/numo/gsl/gen/tmpl/mod_func_scalar.c +27 -0
- data/ext/numo/gsl/gen/tmpl/module.c +9 -0
- data/ext/numo/gsl/histogram/depend +17 -0
- data/ext/numo/gsl/histogram/erbpp_histogram.rb +109 -0
- data/ext/numo/gsl/histogram/extconf.rb +9 -0
- data/ext/numo/gsl/histogram/func_def.rb +763 -0
- data/ext/numo/gsl/histogram/tmpl/c_DFloat_f_2d_get.c +54 -0
- data/ext/numo/gsl/histogram/tmpl/c_DFloat_f_field.c +35 -0
- data/ext/numo/gsl/histogram/tmpl/c_DFloat_f_get.c +47 -0
- data/ext/numo/gsl/histogram/tmpl/c_DFloat_x2_f_get_range.c +56 -0
- data/ext/numo/gsl/histogram/tmpl/c_bool_f_other.c +19 -0
- data/ext/numo/gsl/histogram/tmpl/c_bool_f_pdf_init.c +24 -0
- data/ext/numo/gsl/histogram/tmpl/c_self_f_2d_set_ranges.c +26 -0
- data/ext/numo/gsl/histogram/tmpl/c_self_f_set_ranges.c +21 -0
- data/ext/numo/gsl/histogram/tmpl/c_sizet_f_field.c +15 -0
- data/ext/numo/gsl/interp/depend +17 -0
- data/ext/numo/gsl/interp/erbpp_interp.rb +59 -0
- data/ext/numo/gsl/interp/extconf.rb +9 -0
- data/ext/numo/gsl/interp/func_def.rb +816 -0
- data/ext/numo/gsl/interp/parse_interp.rb +67 -0
- data/ext/numo/gsl/interp/tmpl/interp2d_new.c +36 -0
- data/ext/numo/gsl/interp/tmpl/interp2d_type_new.c +17 -0
- data/ext/numo/gsl/interp/tmpl/interp_bsearch.c +57 -0
- data/ext/numo/gsl/interp/tmpl/interp_new.c +29 -0
- data/ext/numo/gsl/interp/tmpl/interp_type_new.c +16 -0
- data/ext/numo/gsl/interp/tmpl/spline2d_eval.c +61 -0
- data/ext/numo/gsl/interp/tmpl/spline_eval.c +55 -0
- data/ext/numo/gsl/interp/tmpl/spline_integ.c +56 -0
- data/ext/numo/gsl/interp/type_def.rb +9 -0
- data/ext/numo/gsl/multifit/depend +17 -0
- data/ext/numo/gsl/multifit/erbpp_multifit.rb +99 -0
- data/ext/numo/gsl/multifit/extconf.rb +9 -0
- data/ext/numo/gsl/multifit/func_2.1.rb +1035 -0
- data/ext/numo/gsl/multifit/func_2.2.1.rb +736 -0
- data/ext/numo/gsl/multifit/func_2.2.rb +736 -0
- data/ext/numo/gsl/multifit/func_2.3.rb +872 -0
- data/ext/numo/gsl/multifit/func_def.rb +1012 -0
- data/ext/numo/gsl/multifit/tmpl/multifit_linear.c +66 -0
- data/ext/numo/gsl/multifit/tmpl/multifit_linear_est.c +48 -0
- data/ext/numo/gsl/multifit/tmpl/multifit_linear_residuals.c +47 -0
- data/ext/numo/gsl/multifit/tmpl/multifit_wlinear.c +70 -0
- data/ext/numo/gsl/multifit/type_def.rb +1 -0
- data/ext/numo/gsl/numo_gsl.h +117 -0
- data/ext/numo/gsl/pdf/depend +17 -0
- data/ext/numo/gsl/pdf/erbpp_pdf.rb +26 -0
- data/ext/numo/gsl/pdf/extconf.rb +9 -0
- data/ext/numo/gsl/pdf/func_2.2.1.rb +306 -0
- data/ext/numo/gsl/pdf/func_2.2.rb +306 -0
- data/ext/numo/gsl/pdf/func_2.3.rb +306 -0
- data/ext/numo/gsl/pdf/func_def.rb +282 -0
- data/ext/numo/gsl/pdf/parse_pdf.rb +42 -0
- data/ext/numo/gsl/pdf/tmpl/dirichlet.c +39 -0
- data/ext/numo/gsl/pdf/tmpl/multinomial.c +39 -0
- data/ext/numo/gsl/poly/depend +17 -0
- data/ext/numo/gsl/poly/erbpp_poly.rb +70 -0
- data/ext/numo/gsl/poly/extconf.rb +9 -0
- data/ext/numo/gsl/poly/func_def.rb +234 -0
- data/ext/numo/gsl/poly/tmpl/poly_complex_solve.c +59 -0
- data/ext/numo/gsl/poly/tmpl/poly_eval.c +70 -0
- data/ext/numo/gsl/poly/tmpl/poly_eval_derivs.c +40 -0
- data/ext/numo/gsl/ran/depend +17 -0
- data/ext/numo/gsl/ran/erbpp_ran.rb +42 -0
- data/ext/numo/gsl/ran/extconf.rb +9 -0
- data/ext/numo/gsl/ran/func_2.2.1.rb +1658 -0
- data/ext/numo/gsl/ran/func_2.2.rb +1658 -0
- data/ext/numo/gsl/ran/func_2.3.rb +1658 -0
- data/ext/numo/gsl/ran/func_def.rb +1594 -0
- data/ext/numo/gsl/ran/parse_ran.rb +10 -0
- data/ext/numo/gsl/rng/depend +17 -0
- data/ext/numo/gsl/rng/erbpp_rng.rb +58 -0
- data/ext/numo/gsl/rng/extconf.rb +9 -0
- data/ext/numo/gsl/rng/func_def.rb +230 -0
- data/ext/numo/gsl/rng/parse_rng.rb +125 -0
- data/ext/numo/gsl/rng/tmpl/ran.c +40 -0
- data/ext/numo/gsl/rng/tmpl/ran_DFloat_f_DFloat.c +28 -0
- data/ext/numo/gsl/rng/tmpl/ran_DFloat_x2.c +45 -0
- data/ext/numo/gsl/rng/tmpl/ran_DFloat_x3.c +51 -0
- data/ext/numo/gsl/rng/tmpl/ran_multinomial.c +32 -0
- data/ext/numo/gsl/rng/tmpl/rng_DFloat.c +29 -0
- data/ext/numo/gsl/rng/tmpl/rng_UInt.c +44 -0
- data/ext/numo/gsl/rng/tmpl/rng_alloc.c +24 -0
- data/ext/numo/gsl/rng/tmpl/rng_type_new.c +14 -0
- data/ext/numo/gsl/rng/type_def.rb +63 -0
- data/ext/numo/gsl/rstat/depend +17 -0
- data/ext/numo/gsl/rstat/erbpp_rstat.rb +64 -0
- data/ext/numo/gsl/rstat/extconf.rb +9 -0
- data/ext/numo/gsl/rstat/func_2.2.1.rb +116 -0
- data/ext/numo/gsl/rstat/func_2.2.rb +116 -0
- data/ext/numo/gsl/rstat/func_2.3.rb +123 -0
- data/ext/numo/gsl/rstat/func_def.rb +102 -0
- data/ext/numo/gsl/sf/depend +17 -0
- data/ext/numo/gsl/sf/erbpp_sf.rb +51 -0
- data/ext/numo/gsl/sf/extconf.rb +9 -0
- data/ext/numo/gsl/sf/func_def.rb +4703 -0
- data/ext/numo/gsl/sf/parse_sf.rb +277 -0
- data/ext/numo/gsl/sf/tmpl/c_DFloat_f_int_x2_DFloat.c +50 -0
- data/ext/numo/gsl/sf/tmpl/c_DFloat_f_int_x2_DFloat_x2.c +52 -0
- data/ext/numo/gsl/sf/tmpl/c_DFloat_f_int_x3_DFloat_x2.c +55 -0
- data/ext/numo/gsl/sf/tmpl/m_DFloat_f_DFloat_mode.c +47 -0
- data/ext/numo/gsl/sf/tmpl/m_DFloat_f_lmax_array.c +41 -0
- data/ext/numo/gsl/sf/tmpl/m_DFloat_f_nmin_nmax_array.c +49 -0
- data/ext/numo/gsl/spmatrix/const_2.2.1.rb +3 -0
- data/ext/numo/gsl/spmatrix/const_2.2.rb +3 -0
- data/ext/numo/gsl/spmatrix/const_2.3.rb +3 -0
- data/ext/numo/gsl/spmatrix/const_def.rb +2 -0
- data/ext/numo/gsl/spmatrix/depend +17 -0
- data/ext/numo/gsl/spmatrix/erbpp_spmatrix.rb +100 -0
- data/ext/numo/gsl/spmatrix/extconf.rb +9 -0
- data/ext/numo/gsl/spmatrix/func_2.2.1.rb +297 -0
- data/ext/numo/gsl/spmatrix/func_2.2.rb +297 -0
- data/ext/numo/gsl/spmatrix/func_2.3.rb +297 -0
- data/ext/numo/gsl/spmatrix/func_def.rb +218 -0
- data/ext/numo/gsl/spmatrix/parse_spmatrix.rb +70 -0
- data/ext/numo/gsl/spmatrix/tmpl/itersolve_iterate.c +47 -0
- data/ext/numo/gsl/spmatrix/tmpl/itersolve_new.c +22 -0
- data/ext/numo/gsl/spmatrix/tmpl/itersolve_type_new.c +16 -0
- data/ext/numo/gsl/spmatrix/tmpl/spblas_dgemm.c +35 -0
- data/ext/numo/gsl/spmatrix/tmpl/spblas_dgemv.c +43 -0
- data/ext/numo/gsl/spmatrix/tmpl/spmatrix_add.c +22 -0
- data/ext/numo/gsl/spmatrix/tmpl/spmatrix_d2sp.c +28 -0
- data/ext/numo/gsl/spmatrix/tmpl/spmatrix_new.c +40 -0
- data/ext/numo/gsl/spmatrix/tmpl/spmatrix_sp2d.c +25 -0
- data/ext/numo/gsl/spmatrix/type_def.rb +1 -0
- data/ext/numo/gsl/stats/depend +17 -0
- data/ext/numo/gsl/stats/erbpp_stats.rb +29 -0
- data/ext/numo/gsl/stats/extconf.rb +9 -0
- data/ext/numo/gsl/stats/func_2.2.1.rb +608 -0
- data/ext/numo/gsl/stats/func_2.2.rb +608 -0
- data/ext/numo/gsl/stats/func_2.3.rb +608 -0
- data/ext/numo/gsl/stats/func_def.rb +608 -0
- data/ext/numo/gsl/stats/parse_stats.rb +63 -0
- data/ext/numo/gsl/stats/tmpl/stats_1a0p.c +37 -0
- data/ext/numo/gsl/stats/tmpl/stats_1a0p_index.c +60 -0
- data/ext/numo/gsl/stats/tmpl/stats_1a1p.c +41 -0
- data/ext/numo/gsl/stats/tmpl/stats_1a2p.c +42 -0
- data/ext/numo/gsl/stats/tmpl/stats_2a0p.c +39 -0
- data/ext/numo/gsl/stats/tmpl/stats_2a1p.c +43 -0
- data/ext/numo/gsl/stats/tmpl/stats_2a2p.c +44 -0
- data/ext/numo/gsl/stats/tmpl/stats_minmax.c +37 -0
- data/ext/numo/gsl/stats/tmpl/stats_minmax_index.c +67 -0
- data/ext/numo/gsl/stats/tmpl/stats_spearman.c +46 -0
- data/ext/numo/gsl/sys/const_def.rb +21 -0
- data/ext/numo/gsl/sys/depend +17 -0
- data/ext/numo/gsl/sys/enum_def.rb +75 -0
- data/ext/numo/gsl/sys/erbpp_sys.rb +60 -0
- data/ext/numo/gsl/sys/extconf.rb +9 -0
- data/ext/numo/gsl/sys/func_def.rb +249 -0
- data/ext/numo/gsl/version.h +1 -0
- data/ext/numo/gsl/wavelet/depend +17 -0
- data/ext/numo/gsl/wavelet/erbpp_wavelet.rb +48 -0
- data/ext/numo/gsl/wavelet/extconf.rb +9 -0
- data/ext/numo/gsl/wavelet/func_def.rb +337 -0
- data/ext/numo/gsl/wavelet/parse_wavelet.rb +47 -0
- data/ext/numo/gsl/wavelet/tmpl/wavelet2d_transform.c +56 -0
- data/ext/numo/gsl/wavelet/tmpl/wavelet_array_check.c +56 -0
- data/ext/numo/gsl/wavelet/tmpl/wavelet_macro.c +1 -0
- data/ext/numo/gsl/wavelet/tmpl/wavelet_new.c +20 -0
- data/ext/numo/gsl/wavelet/tmpl/wavelet_transform.c +55 -0
- data/ext/numo/gsl/wavelet/tmpl/wavelet_transform2.c +22 -0
- data/ext/numo/gsl/wavelet/tmpl/wavelet_type_new.c +15 -0
- data/ext/numo/gsl/wavelet/type_def.rb +6 -0
- data/lib/numo/gsl.rb +17 -0
- data/numo-gsl.gemspec +33 -0
- metadata +367 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: dfc3168ce877838913177f1f7ff18cd38aa92901
|
4
|
+
data.tar.gz: 4d730d4bbc71e5e87be725eb46fe0c2a836b405c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: aa34897bdfdca0a1dd5f4fc023d382109a344ece98892475a49d9cb46bd824f7519c3ddb2e9e05fc68bbfdbb9723d6c8a340c2f87f9f3f6c7e3b9a2da1924ea9
|
7
|
+
data.tar.gz: 99dcdc90f19af095654b15f8b339f39a80bd7fe7e253234c0ba64f759ac74624bb04306a5bbf8cae0d111a16561ec38c54f4b1fd7349dad27b80fcd7f93d6516
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# GSL interface for Ruby with Numo::NArray
|
2
|
+
|
3
|
+
[GitHub site](https://github.com/ruby-numo/gsl)
|
4
|
+
|
5
|
+
* [GSL - GNU Scientific Library](http://www.gnu.org/software/gsl/) - version >=2.0 and <=2.3.
|
6
|
+
* Pre-alpha version under development.
|
7
|
+
* Call for help! - writing tests and examples.
|
8
|
+
|
9
|
+
# [Numo::GSL API document](http://ruby-numo.github.io/gsl/yard/)
|
10
|
+
|
11
|
+
Implemented Modules:
|
12
|
+
|
13
|
+
* [Numo::GSL -- Mathematical Functions](http://ruby-numo.github.io/gsl/yard/Numo/GSL.html)
|
14
|
+
* (Modules/Classes below are defined in Numo::GSL module, e.g., Const => Numo::GSL::Const)
|
15
|
+
* [Const -- Constants](http://ruby-numo.github.io/gsl/yard/Numo/GSL/Const.html)
|
16
|
+
* [Poly -- Polynomials](http://ruby-numo.github.io/gsl/yard/Numo/GSL/Poly.html)
|
17
|
+
* [Sf -- Special Functions](http://ruby-numo.github.io/gsl/yard/Numo/GSL/Sf.html)
|
18
|
+
* [Rng -- Random Number Generation](http://ruby-numo.github.io/gsl/yard/Numo/GSL/Rng.html)
|
19
|
+
* [Ran -- Random Number Distriutions](http://ruby-numo.github.io/gsl/yard/Numo/GSL/Ran.html)
|
20
|
+
* [Pdf -- Probability Density Functions](http://ruby-numo.github.io/gsl/yard/Numo/GSL/Pdf.html)
|
21
|
+
* [Cdf -- Cumulative Distribution Functions](http://ruby-numo.github.io/gsl/yard/Numo/GSL/Cdf.html)
|
22
|
+
* [Stats -- Statistics](http://ruby-numo.github.io/gsl/yard/Numo/GSL/Stats.html)
|
23
|
+
* [Rstat -- Runnning Statistics](http://ruby-numo.github.io/gsl/yard/Numo/GSL/Rstat.html)
|
24
|
+
* [Histogram -- Histograms](http://ruby-numo.github.io/gsl/yard/Numo/GSL/Histogram.html)
|
25
|
+
* [Histogram2D -- 2D Histograms](http://ruby-numo.github.io/gsl/yard/Numo/GSL/Histogram2D.html)
|
26
|
+
* [Spline -- Interpolarion](http://ruby-numo.github.io/gsl/yard/Numo/GSL/Spline.html)
|
27
|
+
* [Spline2D -- 2D Interpolarion](http://ruby-numo.github.io/gsl/yard/Numo/GSL/Spline2D.html)
|
28
|
+
* [Wavelet -- Wavelet Transforms](http://ruby-numo.github.io/gsl/yard/Numo/GSL/Wavelet.html)
|
29
|
+
* [Wavelet2D -- 2D Wavelet Transforms](http://ruby-numo.github.io/gsl/yard/Numo/GSL/Wavelet2D.html)
|
30
|
+
* [Fit -- Linear regression](http://ruby-numo.github.io/gsl/yard/Numo/GSL/Fit.html)
|
31
|
+
* [Multifit -- Multi-parameter regression](http://ruby-numo.github.io/gsl/yard/Numo/GSL/Multifit.html)
|
32
|
+
* [SpMatrix -- Sparse Matrices](http://ruby-numo.github.io/gsl/yard/Numo/GSL/SpMatrix.html)
|
33
|
+
* [SpBlas -- Sparse BLAS](http://ruby-numo.github.io/gsl/yard/Numo/GSL/SpBlas.html)
|
34
|
+
* [SpLinalg -- Sparse Linear Algebra](http://ruby-numo.github.io/gsl/yard/Numo/GSL/SpLinalg.html)
|
35
|
+
|
36
|
+
More modules will be implemented.
|
37
|
+
|
38
|
+
# Naming convention
|
39
|
+
|
40
|
+
```
|
41
|
+
[C] GSL function/constant => [Ruby] Numo::GSL function/constant
|
42
|
+
* Constants
|
43
|
+
M_2_PI => Numo::GSL::M_2_PI
|
44
|
+
GSL_CONST_MKSA_ANGSTROM => Numo::GSL::Const::MKSA_ANGSTROM
|
45
|
+
* Module function
|
46
|
+
gsl_acosh() => Numo::GSL.acosh()
|
47
|
+
gsl_sf_bessel_J0() => Numo::GSL::Sf.bessel_J0()
|
48
|
+
* Class method
|
49
|
+
gsl_rng_alloc() => Numo::GSL::Rng.new
|
50
|
+
gsl_rng_get() => Numo::GSL::Rng#get
|
51
|
+
* Subclass
|
52
|
+
gsl_rng_type *gsl_rng_mt19937; => Numo::GSL::Rng::Mt19937 < Numo::GSL::Rng
|
53
|
+
* Exception
|
54
|
+
gsl_ran_gaussian_pdf() => Numo::GSL::Pdf.gaussian
|
55
|
+
gsl_ran_gaussian() => Numo::GSL::Rng#gaussian (Rng includes Numo::GSL::Ran)
|
56
|
+
```
|
57
|
+
|
58
|
+
# Installation
|
59
|
+
|
60
|
+
* Install [Numo::NArray](https://github.com/ruby-numo/narray)
|
61
|
+
* Install [GSL - GNU Scientific Library](http://www.gnu.org/software/gsl/) version between 2.0 and 2.3.
|
62
|
+
|
63
|
+
* Install Numo::GSL
|
64
|
+
|
65
|
+
```shell
|
66
|
+
$ gem install numo-gsl
|
67
|
+
```
|
68
|
+
|
69
|
+
rubygems is to be created.
|
70
|
+
|
71
|
+
# Quick start
|
72
|
+
|
73
|
+
If you're familiar with Docker, the following commands should work in most cases:
|
74
|
+
|
75
|
+
```
|
76
|
+
git clone https://github.com/ruby-numo/gsl
|
77
|
+
cd gsl
|
78
|
+
docker build -t numogsl .
|
79
|
+
docker run -d -p 8888:8888 numogsl start-notebook.sh --NotebookApp.token=''
|
80
|
+
```
|
81
|
+
|
82
|
+
and open a web browser to http://localhost:8888 .
|
83
|
+
|
84
|
+
Our Docker image is based on Minimal Jupyter Notebook Stack. See https://github.com/jupyter/docker-stacks/tree/master/minimal-notebook for more details on the Docker command options.
|
data/Rakefile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
|
3
|
+
task :doc do
|
4
|
+
srcs = []
|
5
|
+
Dir.glob("ext/numo/gsl/*").each do |d|
|
6
|
+
if File.exist?(d+"/extconf.rb")
|
7
|
+
sh "cd #{d}; ruby extconf.rb; make clean; make src"
|
8
|
+
srcs << d+"/*.c"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
sh "yard -m markdown -o yard -r README.md #{srcs.join(' ')}"
|
12
|
+
end
|
13
|
+
|
14
|
+
task :cleandoc do
|
15
|
+
sh "rm -r yard .yardoc"
|
16
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
COGEN=ruby erbpp_cdf.rb
|
2
|
+
GENSRC=gsl_cdf.c
|
3
|
+
GENDEPS=erbpp_cdf.rb ../gen/*.rb ../gen/tmpl/*.c
|
4
|
+
|
5
|
+
src : $(GENSRC)
|
6
|
+
|
7
|
+
$(GENSRC) : $(GENDEPS)
|
8
|
+
$(COGEN) > $@
|
9
|
+
|
10
|
+
doc : $(GENSRC)
|
11
|
+
yard doc $(GENSRC)
|
12
|
+
|
13
|
+
clean: cleansrc cleandoc
|
14
|
+
cleansrc:
|
15
|
+
-$(Q)$(RM) $(GENSRC)
|
16
|
+
cleandoc:
|
17
|
+
-$(Q)$(RM_RF) doc .yardoc
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require_relative "../gen/erbpp_gsl"
|
2
|
+
require "erbpp/line_number"
|
3
|
+
|
4
|
+
cdf_methods = ErbppGsl.read_func.select do |h|
|
5
|
+
h[:func_name] =~ /^gsl_cdf_(\w+)$/ &&
|
6
|
+
h[:func_type] == "double"
|
7
|
+
end
|
8
|
+
|
9
|
+
class DefCdf < DefGslModule
|
10
|
+
def lookup(h)
|
11
|
+
case h
|
12
|
+
when FM(dbl, type:dbl); "m_DFloat_f_DFloat"
|
13
|
+
when FM(*[dbl]*2, type:dbl); "m_DFloat_f_DFloat_double"
|
14
|
+
when FM(*[dbl]*3, type:dbl); "m_DFloat_f_DFloat_double_x2"
|
15
|
+
when FM(uint,dbl, type:dbl); "m_DFloat_f_UInt_double"
|
16
|
+
when FM(uint,dbl,uint, type:dbl); "m_DFloat_f_UInt_double_uint"
|
17
|
+
when FM(uint,dbl,dbl, type:dbl); "m_DFloat_f_UInt_double_x2"
|
18
|
+
when FM(*[uint]*4, type:dbl); "m_DFloat_f_UInt_uint_x3"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
DefLib.new do
|
24
|
+
set erb_dir: "../gen/tmpl"
|
25
|
+
set erb_suffix: ".c"
|
26
|
+
|
27
|
+
name = "Cdf"
|
28
|
+
set file_name: "gsl_#{name.downcase}.c"
|
29
|
+
set include_files: ["gsl/gsl_cdf.h"]
|
30
|
+
set lib_name: name.downcase
|
31
|
+
set ns_var: "mG"
|
32
|
+
|
33
|
+
DefCdf.new(self) do
|
34
|
+
set name: name.downcase
|
35
|
+
set module_name: name
|
36
|
+
set module_var: "m"+name
|
37
|
+
set full_module_name: "Numo::GSL::"+name
|
38
|
+
|
39
|
+
cdf_methods.each do |h|
|
40
|
+
check_func(h)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
end.run
|
@@ -0,0 +1,610 @@
|
|
1
|
+
[{:func_name=>"gsl_cdf_gaussian_P",
|
2
|
+
:func_type=>"double",
|
3
|
+
:args=>[["double", "x"], ["double", "sigma"]],
|
4
|
+
:desc=>
|
5
|
+
"These functions compute the cumulative distribution functions\n" +
|
6
|
+
"P(x), Q(x) and their inverses for the Gaussian\n" +
|
7
|
+
"distribution with standard deviation sigma."},
|
8
|
+
{:func_name=>"gsl_cdf_gaussian_Q",
|
9
|
+
:func_type=>"double",
|
10
|
+
:args=>[["double", "x"], ["double", "sigma"]],
|
11
|
+
:desc=>
|
12
|
+
"These functions compute the cumulative distribution functions\n" +
|
13
|
+
"P(x), Q(x) and their inverses for the Gaussian\n" +
|
14
|
+
"distribution with standard deviation sigma."},
|
15
|
+
{:func_name=>"gsl_cdf_gaussian_Pinv",
|
16
|
+
:func_type=>"double",
|
17
|
+
:args=>[["double", "P"], ["double", "sigma"]],
|
18
|
+
:desc=>
|
19
|
+
"These functions compute the cumulative distribution functions\n" +
|
20
|
+
"P(x), Q(x) and their inverses for the Gaussian\n" +
|
21
|
+
"distribution with standard deviation sigma."},
|
22
|
+
{:func_name=>"gsl_cdf_gaussian_Qinv",
|
23
|
+
:func_type=>"double",
|
24
|
+
:args=>[["double", "Q"], ["double", "sigma"]],
|
25
|
+
:desc=>
|
26
|
+
"These functions compute the cumulative distribution functions\n" +
|
27
|
+
"P(x), Q(x) and their inverses for the Gaussian\n" +
|
28
|
+
"distribution with standard deviation sigma."},
|
29
|
+
{:func_name=>"gsl_cdf_ugaussian_P",
|
30
|
+
:func_type=>"double",
|
31
|
+
:args=>[["double", "x"]],
|
32
|
+
:desc=>
|
33
|
+
"These functions compute the cumulative distribution functions\n" +
|
34
|
+
"P(x), Q(x) and their inverses for the unit Gaussian\n" +
|
35
|
+
"distribution."},
|
36
|
+
{:func_name=>"gsl_cdf_ugaussian_Q",
|
37
|
+
:func_type=>"double",
|
38
|
+
:args=>[["double", "x"]],
|
39
|
+
:desc=>
|
40
|
+
"These functions compute the cumulative distribution functions\n" +
|
41
|
+
"P(x), Q(x) and their inverses for the unit Gaussian\n" +
|
42
|
+
"distribution."},
|
43
|
+
{:func_name=>"gsl_cdf_ugaussian_Pinv",
|
44
|
+
:func_type=>"double",
|
45
|
+
:args=>[["double", "P"]],
|
46
|
+
:desc=>
|
47
|
+
"These functions compute the cumulative distribution functions\n" +
|
48
|
+
"P(x), Q(x) and their inverses for the unit Gaussian\n" +
|
49
|
+
"distribution."},
|
50
|
+
{:func_name=>"gsl_cdf_ugaussian_Qinv",
|
51
|
+
:func_type=>"double",
|
52
|
+
:args=>[["double", "Q"]],
|
53
|
+
:desc=>
|
54
|
+
"These functions compute the cumulative distribution functions\n" +
|
55
|
+
"P(x), Q(x) and their inverses for the unit Gaussian\n" +
|
56
|
+
"distribution."},
|
57
|
+
{:func_name=>"gsl_cdf_exponential_P",
|
58
|
+
:func_type=>"double",
|
59
|
+
:args=>[["double", "x"], ["double", "mu"]],
|
60
|
+
:desc=>
|
61
|
+
"These functions compute the cumulative distribution functions\n" +
|
62
|
+
"P(x), Q(x) and their inverses for the exponential\n" +
|
63
|
+
"distribution with mean mu."},
|
64
|
+
{:func_name=>"gsl_cdf_exponential_Q",
|
65
|
+
:func_type=>"double",
|
66
|
+
:args=>[["double", "x"], ["double", "mu"]],
|
67
|
+
:desc=>
|
68
|
+
"These functions compute the cumulative distribution functions\n" +
|
69
|
+
"P(x), Q(x) and their inverses for the exponential\n" +
|
70
|
+
"distribution with mean mu."},
|
71
|
+
{:func_name=>"gsl_cdf_exponential_Pinv",
|
72
|
+
:func_type=>"double",
|
73
|
+
:args=>[["double", "P"], ["double", "mu"]],
|
74
|
+
:desc=>
|
75
|
+
"These functions compute the cumulative distribution functions\n" +
|
76
|
+
"P(x), Q(x) and their inverses for the exponential\n" +
|
77
|
+
"distribution with mean mu."},
|
78
|
+
{:func_name=>"gsl_cdf_exponential_Qinv",
|
79
|
+
:func_type=>"double",
|
80
|
+
:args=>[["double", "Q"], ["double", "mu"]],
|
81
|
+
:desc=>
|
82
|
+
"These functions compute the cumulative distribution functions\n" +
|
83
|
+
"P(x), Q(x) and their inverses for the exponential\n" +
|
84
|
+
"distribution with mean mu."},
|
85
|
+
{:func_name=>"gsl_cdf_laplace_P",
|
86
|
+
:func_type=>"double",
|
87
|
+
:args=>[["double", "x"], ["double", "a"]],
|
88
|
+
:desc=>
|
89
|
+
"These functions compute the cumulative distribution functions\n" +
|
90
|
+
"P(x), Q(x) and their inverses for the Laplace\n" +
|
91
|
+
"distribution with width a."},
|
92
|
+
{:func_name=>"gsl_cdf_laplace_Q",
|
93
|
+
:func_type=>"double",
|
94
|
+
:args=>[["double", "x"], ["double", "a"]],
|
95
|
+
:desc=>
|
96
|
+
"These functions compute the cumulative distribution functions\n" +
|
97
|
+
"P(x), Q(x) and their inverses for the Laplace\n" +
|
98
|
+
"distribution with width a."},
|
99
|
+
{:func_name=>"gsl_cdf_laplace_Pinv",
|
100
|
+
:func_type=>"double",
|
101
|
+
:args=>[["double", "P"], ["double", "a"]],
|
102
|
+
:desc=>
|
103
|
+
"These functions compute the cumulative distribution functions\n" +
|
104
|
+
"P(x), Q(x) and their inverses for the Laplace\n" +
|
105
|
+
"distribution with width a."},
|
106
|
+
{:func_name=>"gsl_cdf_laplace_Qinv",
|
107
|
+
:func_type=>"double",
|
108
|
+
:args=>[["double", "Q"], ["double", "a"]],
|
109
|
+
:desc=>
|
110
|
+
"These functions compute the cumulative distribution functions\n" +
|
111
|
+
"P(x), Q(x) and their inverses for the Laplace\n" +
|
112
|
+
"distribution with width a."},
|
113
|
+
{:func_name=>"gsl_cdf_exppow_P",
|
114
|
+
:func_type=>"double",
|
115
|
+
:args=>[["double", "x"], ["double", "a"], ["double", "b"]],
|
116
|
+
:desc=>
|
117
|
+
"These functions compute the cumulative distribution functions\n" +
|
118
|
+
"P(x), Q(x) for the exponential power distribution with\n" +
|
119
|
+
"parameters a and b."},
|
120
|
+
{:func_name=>"gsl_cdf_exppow_Q",
|
121
|
+
:func_type=>"double",
|
122
|
+
:args=>[["double", "x"], ["double", "a"], ["double", "b"]],
|
123
|
+
:desc=>
|
124
|
+
"These functions compute the cumulative distribution functions\n" +
|
125
|
+
"P(x), Q(x) for the exponential power distribution with\n" +
|
126
|
+
"parameters a and b."},
|
127
|
+
{:func_name=>"gsl_cdf_cauchy_P",
|
128
|
+
:func_type=>"double",
|
129
|
+
:args=>[["double", "x"], ["double", "a"]],
|
130
|
+
:desc=>
|
131
|
+
"These functions compute the cumulative distribution functions\n" +
|
132
|
+
"P(x), Q(x) and their inverses for the Cauchy\n" +
|
133
|
+
"distribution with scale parameter a."},
|
134
|
+
{:func_name=>"gsl_cdf_cauchy_Q",
|
135
|
+
:func_type=>"double",
|
136
|
+
:args=>[["double", "x"], ["double", "a"]],
|
137
|
+
:desc=>
|
138
|
+
"These functions compute the cumulative distribution functions\n" +
|
139
|
+
"P(x), Q(x) and their inverses for the Cauchy\n" +
|
140
|
+
"distribution with scale parameter a."},
|
141
|
+
{:func_name=>"gsl_cdf_cauchy_Pinv",
|
142
|
+
:func_type=>"double",
|
143
|
+
:args=>[["double", "P"], ["double", "a"]],
|
144
|
+
:desc=>
|
145
|
+
"These functions compute the cumulative distribution functions\n" +
|
146
|
+
"P(x), Q(x) and their inverses for the Cauchy\n" +
|
147
|
+
"distribution with scale parameter a."},
|
148
|
+
{:func_name=>"gsl_cdf_cauchy_Qinv",
|
149
|
+
:func_type=>"double",
|
150
|
+
:args=>[["double", "Q"], ["double", "a"]],
|
151
|
+
:desc=>
|
152
|
+
"These functions compute the cumulative distribution functions\n" +
|
153
|
+
"P(x), Q(x) and their inverses for the Cauchy\n" +
|
154
|
+
"distribution with scale parameter a."},
|
155
|
+
{:func_name=>"gsl_cdf_rayleigh_P",
|
156
|
+
:func_type=>"double",
|
157
|
+
:args=>[["double", "x"], ["double", "sigma"]],
|
158
|
+
:desc=>
|
159
|
+
"These functions compute the cumulative distribution functions\n" +
|
160
|
+
"P(x), Q(x) and their inverses for the Rayleigh\n" +
|
161
|
+
"distribution with scale parameter sigma."},
|
162
|
+
{:func_name=>"gsl_cdf_rayleigh_Q",
|
163
|
+
:func_type=>"double",
|
164
|
+
:args=>[["double", "x"], ["double", "sigma"]],
|
165
|
+
:desc=>
|
166
|
+
"These functions compute the cumulative distribution functions\n" +
|
167
|
+
"P(x), Q(x) and their inverses for the Rayleigh\n" +
|
168
|
+
"distribution with scale parameter sigma."},
|
169
|
+
{:func_name=>"gsl_cdf_rayleigh_Pinv",
|
170
|
+
:func_type=>"double",
|
171
|
+
:args=>[["double", "P"], ["double", "sigma"]],
|
172
|
+
:desc=>
|
173
|
+
"These functions compute the cumulative distribution functions\n" +
|
174
|
+
"P(x), Q(x) and their inverses for the Rayleigh\n" +
|
175
|
+
"distribution with scale parameter sigma."},
|
176
|
+
{:func_name=>"gsl_cdf_rayleigh_Qinv",
|
177
|
+
:func_type=>"double",
|
178
|
+
:args=>[["double", "Q"], ["double", "sigma"]],
|
179
|
+
:desc=>
|
180
|
+
"These functions compute the cumulative distribution functions\n" +
|
181
|
+
"P(x), Q(x) and their inverses for the Rayleigh\n" +
|
182
|
+
"distribution with scale parameter sigma."},
|
183
|
+
{:func_name=>"gsl_cdf_gamma_P",
|
184
|
+
:func_type=>"double",
|
185
|
+
:args=>[["double", "x"], ["double", "a"], ["double", "b"]],
|
186
|
+
:desc=>
|
187
|
+
"These functions compute the cumulative distribution functions\n" +
|
188
|
+
"P(x), Q(x) and their inverses for the gamma\n" +
|
189
|
+
"distribution with parameters a and b."},
|
190
|
+
{:func_name=>"gsl_cdf_gamma_Q",
|
191
|
+
:func_type=>"double",
|
192
|
+
:args=>[["double", "x"], ["double", "a"], ["double", "b"]],
|
193
|
+
:desc=>
|
194
|
+
"These functions compute the cumulative distribution functions\n" +
|
195
|
+
"P(x), Q(x) and their inverses for the gamma\n" +
|
196
|
+
"distribution with parameters a and b."},
|
197
|
+
{:func_name=>"gsl_cdf_gamma_Pinv",
|
198
|
+
:func_type=>"double",
|
199
|
+
:args=>[["double", "P"], ["double", "a"], ["double", "b"]],
|
200
|
+
:desc=>
|
201
|
+
"These functions compute the cumulative distribution functions\n" +
|
202
|
+
"P(x), Q(x) and their inverses for the gamma\n" +
|
203
|
+
"distribution with parameters a and b."},
|
204
|
+
{:func_name=>"gsl_cdf_gamma_Qinv",
|
205
|
+
:func_type=>"double",
|
206
|
+
:args=>[["double", "Q"], ["double", "a"], ["double", "b"]],
|
207
|
+
:desc=>
|
208
|
+
"These functions compute the cumulative distribution functions\n" +
|
209
|
+
"P(x), Q(x) and their inverses for the gamma\n" +
|
210
|
+
"distribution with parameters a and b."},
|
211
|
+
{:func_name=>"gsl_cdf_flat_P",
|
212
|
+
:func_type=>"double",
|
213
|
+
:args=>[["double", "x"], ["double", "a"], ["double", "b"]],
|
214
|
+
:desc=>
|
215
|
+
"These functions compute the cumulative distribution functions\n" +
|
216
|
+
"P(x), Q(x) and their inverses for a uniform distribution\n" +
|
217
|
+
"from a to b."},
|
218
|
+
{:func_name=>"gsl_cdf_flat_Q",
|
219
|
+
:func_type=>"double",
|
220
|
+
:args=>[["double", "x"], ["double", "a"], ["double", "b"]],
|
221
|
+
:desc=>
|
222
|
+
"These functions compute the cumulative distribution functions\n" +
|
223
|
+
"P(x), Q(x) and their inverses for a uniform distribution\n" +
|
224
|
+
"from a to b."},
|
225
|
+
{:func_name=>"gsl_cdf_flat_Pinv",
|
226
|
+
:func_type=>"double",
|
227
|
+
:args=>[["double", "P"], ["double", "a"], ["double", "b"]],
|
228
|
+
:desc=>
|
229
|
+
"These functions compute the cumulative distribution functions\n" +
|
230
|
+
"P(x), Q(x) and their inverses for a uniform distribution\n" +
|
231
|
+
"from a to b."},
|
232
|
+
{:func_name=>"gsl_cdf_flat_Qinv",
|
233
|
+
:func_type=>"double",
|
234
|
+
:args=>[["double", "Q"], ["double", "a"], ["double", "b"]],
|
235
|
+
:desc=>
|
236
|
+
"These functions compute the cumulative distribution functions\n" +
|
237
|
+
"P(x), Q(x) and their inverses for a uniform distribution\n" +
|
238
|
+
"from a to b."},
|
239
|
+
{:func_name=>"gsl_cdf_lognormal_P",
|
240
|
+
:func_type=>"double",
|
241
|
+
:args=>[["double", "x"], ["double", "zeta"], ["double", "sigma"]],
|
242
|
+
:desc=>
|
243
|
+
"These functions compute the cumulative distribution functions\n" +
|
244
|
+
"P(x), Q(x) and their inverses for the lognormal\n" +
|
245
|
+
"distribution with parameters zeta and sigma."},
|
246
|
+
{:func_name=>"gsl_cdf_lognormal_Q",
|
247
|
+
:func_type=>"double",
|
248
|
+
:args=>[["double", "x"], ["double", "zeta"], ["double", "sigma"]],
|
249
|
+
:desc=>
|
250
|
+
"These functions compute the cumulative distribution functions\n" +
|
251
|
+
"P(x), Q(x) and their inverses for the lognormal\n" +
|
252
|
+
"distribution with parameters zeta and sigma."},
|
253
|
+
{:func_name=>"gsl_cdf_lognormal_Pinv",
|
254
|
+
:func_type=>"double",
|
255
|
+
:args=>[["double", "P"], ["double", "zeta"], ["double", "sigma"]],
|
256
|
+
:desc=>
|
257
|
+
"These functions compute the cumulative distribution functions\n" +
|
258
|
+
"P(x), Q(x) and their inverses for the lognormal\n" +
|
259
|
+
"distribution with parameters zeta and sigma."},
|
260
|
+
{:func_name=>"gsl_cdf_lognormal_Qinv",
|
261
|
+
:func_type=>"double",
|
262
|
+
:args=>[["double", "Q"], ["double", "zeta"], ["double", "sigma"]],
|
263
|
+
:desc=>
|
264
|
+
"These functions compute the cumulative distribution functions\n" +
|
265
|
+
"P(x), Q(x) and their inverses for the lognormal\n" +
|
266
|
+
"distribution with parameters zeta and sigma."},
|
267
|
+
{:func_name=>"gsl_cdf_chisq_P",
|
268
|
+
:func_type=>"double",
|
269
|
+
:args=>[["double", "x"], ["double", "nu"]],
|
270
|
+
:desc=>
|
271
|
+
"These functions compute the cumulative distribution functions\n" +
|
272
|
+
"P(x), Q(x) and their inverses for the chi-squared\n" +
|
273
|
+
"distribution with nu degrees of freedom."},
|
274
|
+
{:func_name=>"gsl_cdf_chisq_Q",
|
275
|
+
:func_type=>"double",
|
276
|
+
:args=>[["double", "x"], ["double", "nu"]],
|
277
|
+
:desc=>
|
278
|
+
"These functions compute the cumulative distribution functions\n" +
|
279
|
+
"P(x), Q(x) and their inverses for the chi-squared\n" +
|
280
|
+
"distribution with nu degrees of freedom."},
|
281
|
+
{:func_name=>"gsl_cdf_chisq_Pinv",
|
282
|
+
:func_type=>"double",
|
283
|
+
:args=>[["double", "P"], ["double", "nu"]],
|
284
|
+
:desc=>
|
285
|
+
"These functions compute the cumulative distribution functions\n" +
|
286
|
+
"P(x), Q(x) and their inverses for the chi-squared\n" +
|
287
|
+
"distribution with nu degrees of freedom."},
|
288
|
+
{:func_name=>"gsl_cdf_chisq_Qinv",
|
289
|
+
:func_type=>"double",
|
290
|
+
:args=>[["double", "Q"], ["double", "nu"]],
|
291
|
+
:desc=>
|
292
|
+
"These functions compute the cumulative distribution functions\n" +
|
293
|
+
"P(x), Q(x) and their inverses for the chi-squared\n" +
|
294
|
+
"distribution with nu degrees of freedom."},
|
295
|
+
{:func_name=>"gsl_cdf_fdist_P",
|
296
|
+
:func_type=>"double",
|
297
|
+
:args=>[["double", "x"], ["double", "nu1"], ["double", "nu2"]],
|
298
|
+
:desc=>
|
299
|
+
"These functions compute the cumulative distribution functions\n" +
|
300
|
+
"P(x), Q(x) and their inverses for the F-distribution\n" +
|
301
|
+
"with nu1 and nu2 degrees of freedom."},
|
302
|
+
{:func_name=>"gsl_cdf_fdist_Q",
|
303
|
+
:func_type=>"double",
|
304
|
+
:args=>[["double", "x"], ["double", "nu1"], ["double", "nu2"]],
|
305
|
+
:desc=>
|
306
|
+
"These functions compute the cumulative distribution functions\n" +
|
307
|
+
"P(x), Q(x) and their inverses for the F-distribution\n" +
|
308
|
+
"with nu1 and nu2 degrees of freedom."},
|
309
|
+
{:func_name=>"gsl_cdf_fdist_Pinv",
|
310
|
+
:func_type=>"double",
|
311
|
+
:args=>[["double", "P"], ["double", "nu1"], ["double", "nu2"]],
|
312
|
+
:desc=>
|
313
|
+
"These functions compute the cumulative distribution functions\n" +
|
314
|
+
"P(x), Q(x) and their inverses for the F-distribution\n" +
|
315
|
+
"with nu1 and nu2 degrees of freedom."},
|
316
|
+
{:func_name=>"gsl_cdf_fdist_Qinv",
|
317
|
+
:func_type=>"double",
|
318
|
+
:args=>[["double", "Q"], ["double", "nu1"], ["double", "nu2"]],
|
319
|
+
:desc=>
|
320
|
+
"These functions compute the cumulative distribution functions\n" +
|
321
|
+
"P(x), Q(x) and their inverses for the F-distribution\n" +
|
322
|
+
"with nu1 and nu2 degrees of freedom."},
|
323
|
+
{:func_name=>"gsl_cdf_tdist_P",
|
324
|
+
:func_type=>"double",
|
325
|
+
:args=>[["double", "x"], ["double", "nu"]],
|
326
|
+
:desc=>
|
327
|
+
"These functions compute the cumulative distribution functions\n" +
|
328
|
+
"P(x), Q(x) and their inverses for the t-distribution\n" +
|
329
|
+
"with nu degrees of freedom."},
|
330
|
+
{:func_name=>"gsl_cdf_tdist_Q",
|
331
|
+
:func_type=>"double",
|
332
|
+
:args=>[["double", "x"], ["double", "nu"]],
|
333
|
+
:desc=>
|
334
|
+
"These functions compute the cumulative distribution functions\n" +
|
335
|
+
"P(x), Q(x) and their inverses for the t-distribution\n" +
|
336
|
+
"with nu degrees of freedom."},
|
337
|
+
{:func_name=>"gsl_cdf_tdist_Pinv",
|
338
|
+
:func_type=>"double",
|
339
|
+
:args=>[["double", "P"], ["double", "nu"]],
|
340
|
+
:desc=>
|
341
|
+
"These functions compute the cumulative distribution functions\n" +
|
342
|
+
"P(x), Q(x) and their inverses for the t-distribution\n" +
|
343
|
+
"with nu degrees of freedom."},
|
344
|
+
{:func_name=>"gsl_cdf_tdist_Qinv",
|
345
|
+
:func_type=>"double",
|
346
|
+
:args=>[["double", "Q"], ["double", "nu"]],
|
347
|
+
:desc=>
|
348
|
+
"These functions compute the cumulative distribution functions\n" +
|
349
|
+
"P(x), Q(x) and their inverses for the t-distribution\n" +
|
350
|
+
"with nu degrees of freedom."},
|
351
|
+
{:func_name=>"gsl_cdf_beta_P",
|
352
|
+
:func_type=>"double",
|
353
|
+
:args=>[["double", "x"], ["double", "a"], ["double", "b"]],
|
354
|
+
:desc=>
|
355
|
+
"These functions compute the cumulative distribution functions\n" +
|
356
|
+
"P(x), Q(x) and their inverses for the beta\n" +
|
357
|
+
"distribution with parameters a and b."},
|
358
|
+
{:func_name=>"gsl_cdf_beta_Q",
|
359
|
+
:func_type=>"double",
|
360
|
+
:args=>[["double", "x"], ["double", "a"], ["double", "b"]],
|
361
|
+
:desc=>
|
362
|
+
"These functions compute the cumulative distribution functions\n" +
|
363
|
+
"P(x), Q(x) and their inverses for the beta\n" +
|
364
|
+
"distribution with parameters a and b."},
|
365
|
+
{:func_name=>"gsl_cdf_beta_Pinv",
|
366
|
+
:func_type=>"double",
|
367
|
+
:args=>[["double", "P"], ["double", "a"], ["double", "b"]],
|
368
|
+
:desc=>
|
369
|
+
"These functions compute the cumulative distribution functions\n" +
|
370
|
+
"P(x), Q(x) and their inverses for the beta\n" +
|
371
|
+
"distribution with parameters a and b."},
|
372
|
+
{:func_name=>"gsl_cdf_beta_Qinv",
|
373
|
+
:func_type=>"double",
|
374
|
+
:args=>[["double", "Q"], ["double", "a"], ["double", "b"]],
|
375
|
+
:desc=>
|
376
|
+
"These functions compute the cumulative distribution functions\n" +
|
377
|
+
"P(x), Q(x) and their inverses for the beta\n" +
|
378
|
+
"distribution with parameters a and b."},
|
379
|
+
{:func_name=>"gsl_cdf_logistic_P",
|
380
|
+
:func_type=>"double",
|
381
|
+
:args=>[["double", "x"], ["double", "a"]],
|
382
|
+
:desc=>
|
383
|
+
"These functions compute the cumulative distribution functions\n" +
|
384
|
+
"P(x), Q(x) and their inverses for the logistic\n" +
|
385
|
+
"distribution with scale parameter a."},
|
386
|
+
{:func_name=>"gsl_cdf_logistic_Q",
|
387
|
+
:func_type=>"double",
|
388
|
+
:args=>[["double", "x"], ["double", "a"]],
|
389
|
+
:desc=>
|
390
|
+
"These functions compute the cumulative distribution functions\n" +
|
391
|
+
"P(x), Q(x) and their inverses for the logistic\n" +
|
392
|
+
"distribution with scale parameter a."},
|
393
|
+
{:func_name=>"gsl_cdf_logistic_Pinv",
|
394
|
+
:func_type=>"double",
|
395
|
+
:args=>[["double", "P"], ["double", "a"]],
|
396
|
+
:desc=>
|
397
|
+
"These functions compute the cumulative distribution functions\n" +
|
398
|
+
"P(x), Q(x) and their inverses for the logistic\n" +
|
399
|
+
"distribution with scale parameter a."},
|
400
|
+
{:func_name=>"gsl_cdf_logistic_Qinv",
|
401
|
+
:func_type=>"double",
|
402
|
+
:args=>[["double", "Q"], ["double", "a"]],
|
403
|
+
:desc=>
|
404
|
+
"These functions compute the cumulative distribution functions\n" +
|
405
|
+
"P(x), Q(x) and their inverses for the logistic\n" +
|
406
|
+
"distribution with scale parameter a."},
|
407
|
+
{:func_name=>"gsl_cdf_pareto_P",
|
408
|
+
:func_type=>"double",
|
409
|
+
:args=>[["double", "x"], ["double", "a"], ["double", "b"]],
|
410
|
+
:desc=>
|
411
|
+
"These functions compute the cumulative distribution functions\n" +
|
412
|
+
"P(x), Q(x) and their inverses for the Pareto\n" +
|
413
|
+
"distribution with exponent a and scale b."},
|
414
|
+
{:func_name=>"gsl_cdf_pareto_Q",
|
415
|
+
:func_type=>"double",
|
416
|
+
:args=>[["double", "x"], ["double", "a"], ["double", "b"]],
|
417
|
+
:desc=>
|
418
|
+
"These functions compute the cumulative distribution functions\n" +
|
419
|
+
"P(x), Q(x) and their inverses for the Pareto\n" +
|
420
|
+
"distribution with exponent a and scale b."},
|
421
|
+
{:func_name=>"gsl_cdf_pareto_Pinv",
|
422
|
+
:func_type=>"double",
|
423
|
+
:args=>[["double", "P"], ["double", "a"], ["double", "b"]],
|
424
|
+
:desc=>
|
425
|
+
"These functions compute the cumulative distribution functions\n" +
|
426
|
+
"P(x), Q(x) and their inverses for the Pareto\n" +
|
427
|
+
"distribution with exponent a and scale b."},
|
428
|
+
{:func_name=>"gsl_cdf_pareto_Qinv",
|
429
|
+
:func_type=>"double",
|
430
|
+
:args=>[["double", "Q"], ["double", "a"], ["double", "b"]],
|
431
|
+
:desc=>
|
432
|
+
"These functions compute the cumulative distribution functions\n" +
|
433
|
+
"P(x), Q(x) and their inverses for the Pareto\n" +
|
434
|
+
"distribution with exponent a and scale b."},
|
435
|
+
{:func_name=>"gsl_cdf_weibull_P",
|
436
|
+
:func_type=>"double",
|
437
|
+
:args=>[["double", "x"], ["double", "a"], ["double", "b"]],
|
438
|
+
:desc=>
|
439
|
+
"These functions compute the cumulative distribution functions\n" +
|
440
|
+
"P(x), Q(x) and their inverses for the Weibull\n" +
|
441
|
+
"distribution with scale a and exponent b."},
|
442
|
+
{:func_name=>"gsl_cdf_weibull_Q",
|
443
|
+
:func_type=>"double",
|
444
|
+
:args=>[["double", "x"], ["double", "a"], ["double", "b"]],
|
445
|
+
:desc=>
|
446
|
+
"These functions compute the cumulative distribution functions\n" +
|
447
|
+
"P(x), Q(x) and their inverses for the Weibull\n" +
|
448
|
+
"distribution with scale a and exponent b."},
|
449
|
+
{:func_name=>"gsl_cdf_weibull_Pinv",
|
450
|
+
:func_type=>"double",
|
451
|
+
:args=>[["double", "P"], ["double", "a"], ["double", "b"]],
|
452
|
+
:desc=>
|
453
|
+
"These functions compute the cumulative distribution functions\n" +
|
454
|
+
"P(x), Q(x) and their inverses for the Weibull\n" +
|
455
|
+
"distribution with scale a and exponent b."},
|
456
|
+
{:func_name=>"gsl_cdf_weibull_Qinv",
|
457
|
+
:func_type=>"double",
|
458
|
+
:args=>[["double", "Q"], ["double", "a"], ["double", "b"]],
|
459
|
+
:desc=>
|
460
|
+
"These functions compute the cumulative distribution functions\n" +
|
461
|
+
"P(x), Q(x) and their inverses for the Weibull\n" +
|
462
|
+
"distribution with scale a and exponent b."},
|
463
|
+
{:func_name=>"gsl_cdf_gumbel1_P",
|
464
|
+
:func_type=>"double",
|
465
|
+
:args=>[["double", "x"], ["double", "a"], ["double", "b"]],
|
466
|
+
:desc=>
|
467
|
+
"These functions compute the cumulative distribution functions\n" +
|
468
|
+
"P(x), Q(x) and their inverses for the Type-1 Gumbel\n" +
|
469
|
+
"distribution with parameters a and b."},
|
470
|
+
{:func_name=>"gsl_cdf_gumbel1_Q",
|
471
|
+
:func_type=>"double",
|
472
|
+
:args=>[["double", "x"], ["double", "a"], ["double", "b"]],
|
473
|
+
:desc=>
|
474
|
+
"These functions compute the cumulative distribution functions\n" +
|
475
|
+
"P(x), Q(x) and their inverses for the Type-1 Gumbel\n" +
|
476
|
+
"distribution with parameters a and b."},
|
477
|
+
{:func_name=>"gsl_cdf_gumbel1_Pinv",
|
478
|
+
:func_type=>"double",
|
479
|
+
:args=>[["double", "P"], ["double", "a"], ["double", "b"]],
|
480
|
+
:desc=>
|
481
|
+
"These functions compute the cumulative distribution functions\n" +
|
482
|
+
"P(x), Q(x) and their inverses for the Type-1 Gumbel\n" +
|
483
|
+
"distribution with parameters a and b."},
|
484
|
+
{:func_name=>"gsl_cdf_gumbel1_Qinv",
|
485
|
+
:func_type=>"double",
|
486
|
+
:args=>[["double", "Q"], ["double", "a"], ["double", "b"]],
|
487
|
+
:desc=>
|
488
|
+
"These functions compute the cumulative distribution functions\n" +
|
489
|
+
"P(x), Q(x) and their inverses for the Type-1 Gumbel\n" +
|
490
|
+
"distribution with parameters a and b."},
|
491
|
+
{:func_name=>"gsl_cdf_gumbel2_P",
|
492
|
+
:func_type=>"double",
|
493
|
+
:args=>[["double", "x"], ["double", "a"], ["double", "b"]],
|
494
|
+
:desc=>
|
495
|
+
"These functions compute the cumulative distribution functions\n" +
|
496
|
+
"P(x), Q(x) and their inverses for the Type-2 Gumbel\n" +
|
497
|
+
"distribution with parameters a and b."},
|
498
|
+
{:func_name=>"gsl_cdf_gumbel2_Q",
|
499
|
+
:func_type=>"double",
|
500
|
+
:args=>[["double", "x"], ["double", "a"], ["double", "b"]],
|
501
|
+
:desc=>
|
502
|
+
"These functions compute the cumulative distribution functions\n" +
|
503
|
+
"P(x), Q(x) and their inverses for the Type-2 Gumbel\n" +
|
504
|
+
"distribution with parameters a and b."},
|
505
|
+
{:func_name=>"gsl_cdf_gumbel2_Pinv",
|
506
|
+
:func_type=>"double",
|
507
|
+
:args=>[["double", "P"], ["double", "a"], ["double", "b"]],
|
508
|
+
:desc=>
|
509
|
+
"These functions compute the cumulative distribution functions\n" +
|
510
|
+
"P(x), Q(x) and their inverses for the Type-2 Gumbel\n" +
|
511
|
+
"distribution with parameters a and b."},
|
512
|
+
{:func_name=>"gsl_cdf_gumbel2_Qinv",
|
513
|
+
:func_type=>"double",
|
514
|
+
:args=>[["double", "Q"], ["double", "a"], ["double", "b"]],
|
515
|
+
:desc=>
|
516
|
+
"These functions compute the cumulative distribution functions\n" +
|
517
|
+
"P(x), Q(x) and their inverses for the Type-2 Gumbel\n" +
|
518
|
+
"distribution with parameters a and b."},
|
519
|
+
{:func_name=>"gsl_cdf_poisson_P",
|
520
|
+
:func_type=>"double",
|
521
|
+
:args=>[["unsigned int", "k"], ["double", "mu"]],
|
522
|
+
:desc=>
|
523
|
+
"These functions compute the cumulative distribution functions\n" +
|
524
|
+
"P(k), Q(k) for the Poisson distribution with parameter\n" +
|
525
|
+
"mu."},
|
526
|
+
{:func_name=>"gsl_cdf_poisson_Q",
|
527
|
+
:func_type=>"double",
|
528
|
+
:args=>[["unsigned int", "k"], ["double", "mu"]],
|
529
|
+
:desc=>
|
530
|
+
"These functions compute the cumulative distribution functions\n" +
|
531
|
+
"P(k), Q(k) for the Poisson distribution with parameter\n" +
|
532
|
+
"mu."},
|
533
|
+
{:func_name=>"gsl_cdf_binomial_P",
|
534
|
+
:func_type=>"double",
|
535
|
+
:args=>[["unsigned int", "k"], ["double", "p"], ["unsigned int", "n"]],
|
536
|
+
:desc=>
|
537
|
+
"These functions compute the cumulative distribution functions\n" +
|
538
|
+
"P(k), Q(k) for the binomial\n" +
|
539
|
+
"distribution with parameters p and n."},
|
540
|
+
{:func_name=>"gsl_cdf_binomial_Q",
|
541
|
+
:func_type=>"double",
|
542
|
+
:args=>[["unsigned int", "k"], ["double", "p"], ["unsigned int", "n"]],
|
543
|
+
:desc=>
|
544
|
+
"These functions compute the cumulative distribution functions\n" +
|
545
|
+
"P(k), Q(k) for the binomial\n" +
|
546
|
+
"distribution with parameters p and n."},
|
547
|
+
{:func_name=>"gsl_cdf_negative_binomial_P",
|
548
|
+
:func_type=>"double",
|
549
|
+
:args=>[["unsigned int", "k"], ["double", "p"], ["double", "n"]],
|
550
|
+
:desc=>
|
551
|
+
"These functions compute the cumulative distribution functions\n" +
|
552
|
+
"P(k), Q(k) for the negative binomial distribution with\n" +
|
553
|
+
"parameters p and n."},
|
554
|
+
{:func_name=>"gsl_cdf_negative_binomial_Q",
|
555
|
+
:func_type=>"double",
|
556
|
+
:args=>[["unsigned int", "k"], ["double", "p"], ["double", "n"]],
|
557
|
+
:desc=>
|
558
|
+
"These functions compute the cumulative distribution functions\n" +
|
559
|
+
"P(k), Q(k) for the negative binomial distribution with\n" +
|
560
|
+
"parameters p and n."},
|
561
|
+
{:func_name=>"gsl_cdf_pascal_P",
|
562
|
+
:func_type=>"double",
|
563
|
+
:args=>[["unsigned int", "k"], ["double", "p"], ["unsigned int", "n"]],
|
564
|
+
:desc=>
|
565
|
+
"These functions compute the cumulative distribution functions\n" +
|
566
|
+
"P(k), Q(k) for the Pascal distribution with\n" +
|
567
|
+
"parameters p and n."},
|
568
|
+
{:func_name=>"gsl_cdf_pascal_Q",
|
569
|
+
:func_type=>"double",
|
570
|
+
:args=>[["unsigned int", "k"], ["double", "p"], ["unsigned int", "n"]],
|
571
|
+
:desc=>
|
572
|
+
"These functions compute the cumulative distribution functions\n" +
|
573
|
+
"P(k), Q(k) for the Pascal distribution with\n" +
|
574
|
+
"parameters p and n."},
|
575
|
+
{:func_name=>"gsl_cdf_geometric_P",
|
576
|
+
:func_type=>"double",
|
577
|
+
:args=>[["unsigned int", "k"], ["double", "p"]],
|
578
|
+
:desc=>
|
579
|
+
"These functions compute the cumulative distribution functions\n" +
|
580
|
+
"P(k), Q(k) for the geometric distribution with parameter\n" +
|
581
|
+
"p."},
|
582
|
+
{:func_name=>"gsl_cdf_geometric_Q",
|
583
|
+
:func_type=>"double",
|
584
|
+
:args=>[["unsigned int", "k"], ["double", "p"]],
|
585
|
+
:desc=>
|
586
|
+
"These functions compute the cumulative distribution functions\n" +
|
587
|
+
"P(k), Q(k) for the geometric distribution with parameter\n" +
|
588
|
+
"p."},
|
589
|
+
{:func_name=>"gsl_cdf_hypergeometric_P",
|
590
|
+
:func_type=>"double",
|
591
|
+
:args=>
|
592
|
+
[["unsigned int", "k"],
|
593
|
+
["unsigned int", "n1"],
|
594
|
+
["unsigned int", "n2"],
|
595
|
+
["unsigned int", "t"]],
|
596
|
+
:desc=>
|
597
|
+
"These functions compute the cumulative distribution functions\n" +
|
598
|
+
"P(k), Q(k) for the hypergeometric distribution with\n" +
|
599
|
+
"parameters n1, n2 and t."},
|
600
|
+
{:func_name=>"gsl_cdf_hypergeometric_Q",
|
601
|
+
:func_type=>"double",
|
602
|
+
:args=>
|
603
|
+
[["unsigned int", "k"],
|
604
|
+
["unsigned int", "n1"],
|
605
|
+
["unsigned int", "n2"],
|
606
|
+
["unsigned int", "t"]],
|
607
|
+
:desc=>
|
608
|
+
"These functions compute the cumulative distribution functions\n" +
|
609
|
+
"P(k), Q(k) for the hypergeometric distribution with\n" +
|
610
|
+
"parameters n1, n2 and t."}]
|