rb-gsl 1.15.3.1 → 1.15.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHORS +2 -2
- data/ChangeLog +8 -0
- data/Rakefile +39 -96
- data/VERSION +1 -1
- data/ext/array.c +2 -2
- data/ext/block_source.c +1 -1
- data/ext/dirac.c +1 -1
- data/ext/eigen.c +13 -13
- data/ext/extconf.rb +17 -11
- data/ext/function.c +5 -5
- data/ext/gsl_narray.c +6 -6
- data/ext/histogram.c +7 -6
- data/ext/histogram2d.c +4 -4
- data/ext/interp.c +1 -1
- data/ext/linalg.c +13 -11
- data/ext/linalg_complex.c +8 -6
- data/ext/math.c +1 -1
- data/ext/matrix_complex.c +6 -6
- data/ext/matrix_source.c +10 -10
- data/ext/monte.c +2 -2
- data/ext/multimin.c +4 -4
- data/ext/multiroots.c +8 -8
- data/ext/nmf.c +6 -6
- data/ext/ntuple.c +4 -4
- data/ext/odeiv.c +2 -2
- data/ext/permutation.c +1 -1
- data/ext/poly2.c +6 -6
- data/ext/poly_source.c +9 -6
- data/ext/sf.c +31 -45
- data/ext/signal.c +2 -2
- data/ext/vector_complex.c +11 -10
- data/ext/vector_double.c +7 -4
- data/ext/vector_source.c +29 -26
- data/ext/wavelet.c +1 -1
- data/include/rb_gsl_common.h +12 -0
- data/include/rb_gsl_config.h +10 -1
- data/rdoc/blas.rdoc +4 -4
- data/rdoc/bspline.rdoc +8 -8
- data/rdoc/cheb.rdoc +9 -9
- data/rdoc/cholesky_complex.rdoc +1 -1
- data/rdoc/combi.rdoc +10 -10
- data/rdoc/complex.rdoc +12 -12
- data/rdoc/const.rdoc +21 -21
- data/rdoc/dht.rdoc +7 -7
- data/rdoc/diff.rdoc +7 -7
- data/rdoc/ehandling.rdoc +4 -4
- data/rdoc/eigen.rdoc +12 -12
- data/rdoc/fft.rdoc +27 -27
- data/rdoc/fit.rdoc +19 -19
- data/rdoc/function.rdoc +1 -1
- data/rdoc/graph.rdoc +3 -3
- data/rdoc/hist.rdoc +17 -17
- data/rdoc/hist2d.rdoc +5 -5
- data/rdoc/hist3d.rdoc +4 -4
- data/rdoc/index.rdoc +4 -4
- data/rdoc/integration.rdoc +17 -17
- data/rdoc/interp.rdoc +12 -12
- data/rdoc/intro.rdoc +4 -4
- data/rdoc/linalg.rdoc +21 -21
- data/rdoc/linalg_complex.rdoc +1 -1
- data/rdoc/math.rdoc +14 -14
- data/rdoc/matrix.rdoc +21 -21
- data/rdoc/min.rdoc +10 -10
- data/rdoc/monte.rdoc +4 -4
- data/rdoc/multimin.rdoc +13 -13
- data/rdoc/multiroot.rdoc +13 -13
- data/rdoc/narray.rdoc +10 -10
- data/rdoc/ndlinear.rdoc +5 -5
- data/rdoc/nonlinearfit.rdoc +18 -18
- data/rdoc/ntuple.rdoc +6 -6
- data/rdoc/odeiv.rdoc +13 -13
- data/rdoc/perm.rdoc +12 -12
- data/rdoc/poly.rdoc +18 -18
- data/rdoc/qrng.rdoc +10 -10
- data/rdoc/randist.rdoc +11 -11
- data/rdoc/ref.rdoc +50 -50
- data/rdoc/rng.rdoc +10 -10
- data/rdoc/rngextra.rdoc +5 -5
- data/rdoc/roots.rdoc +13 -13
- data/rdoc/sf.rdoc +36 -36
- data/rdoc/siman.rdoc +4 -4
- data/rdoc/sort.rdoc +7 -7
- data/rdoc/start.rdoc +1 -1
- data/rdoc/stats.rdoc +14 -14
- data/rdoc/sum.rdoc +5 -5
- data/rdoc/tensor.rdoc +4 -4
- data/rdoc/tut.rdoc +1 -1
- data/rdoc/use.rdoc +5 -5
- data/rdoc/vector.rdoc +29 -29
- data/rdoc/vector_complex.rdoc +6 -6
- data/rdoc/wavelet.rdoc +9 -9
- data/test/gsl/blas_test.rb +79 -0
- data/test/gsl/bspline_test.rb +63 -0
- data/test/gsl/cdf_test.rb +1512 -0
- data/test/gsl/cheb_test.rb +80 -0
- data/test/gsl/combination_test.rb +100 -0
- data/test/gsl/complex_test.rb +20 -0
- data/test/gsl/const_test.rb +29 -0
- data/test/gsl/deriv_test.rb +62 -0
- data/test/gsl/dht_test.rb +79 -0
- data/test/gsl/diff_test.rb +53 -0
- data/test/gsl/eigen_test.rb +563 -0
- data/test/gsl/err_test.rb +23 -0
- data/test/gsl/fit_test.rb +101 -0
- data/test/gsl/histo_test.rb +14 -0
- data/test/gsl/integration_test.rb +274 -0
- data/test/gsl/interp_test.rb +27 -0
- data/test/gsl/linalg_test.rb +463 -0
- data/test/gsl/matrix_nmf_test.rb +37 -0
- data/test/gsl/matrix_test.rb +77 -0
- data/test/gsl/min_test.rb +89 -0
- data/test/gsl/monte_test.rb +77 -0
- data/test/gsl/multifit_test.rb +753 -0
- data/test/gsl/multimin_test.rb +157 -0
- data/test/gsl/multiroot_test.rb +135 -0
- data/test/gsl/multiset_test.rb +52 -0
- data/test/gsl/odeiv_test.rb +275 -0
- data/test/gsl/poly_test.rb +338 -0
- data/test/gsl/qrng_test.rb +94 -0
- data/test/gsl/quartic_test.rb +28 -0
- data/test/gsl/randist_test.rb +122 -0
- data/test/gsl/rng_test.rb +303 -0
- data/test/gsl/roots_test.rb +78 -0
- data/test/gsl/sf_test.rb +2079 -0
- data/test/gsl/stats_test.rb +122 -0
- data/test/gsl/sum_test.rb +69 -0
- data/test/gsl/tensor_test.rb +396 -0
- data/test/gsl/vector_test.rb +223 -0
- data/test/gsl/wavelet_test.rb +130 -0
- data/test/gsl_test.rb +321 -0
- data/test/test_helper.rb +42 -0
- metadata +107 -150
- data/setup.rb +0 -1585
- data/tests/blas/amax.rb +0 -14
- data/tests/blas/asum.rb +0 -16
- data/tests/blas/axpy.rb +0 -25
- data/tests/blas/copy.rb +0 -23
- data/tests/blas/dot.rb +0 -23
- data/tests/bspline.rb +0 -53
- data/tests/cdf.rb +0 -1388
- data/tests/cheb.rb +0 -112
- data/tests/combination.rb +0 -123
- data/tests/complex.rb +0 -17
- data/tests/const.rb +0 -24
- data/tests/deriv.rb +0 -85
- data/tests/dht/dht1.rb +0 -17
- data/tests/dht/dht2.rb +0 -23
- data/tests/dht/dht3.rb +0 -23
- data/tests/dht/dht4.rb +0 -23
- data/tests/diff.rb +0 -78
- data/tests/eigen/eigen.rb +0 -220
- data/tests/eigen/gen.rb +0 -105
- data/tests/eigen/genherm.rb +0 -66
- data/tests/eigen/gensymm.rb +0 -68
- data/tests/eigen/nonsymm.rb +0 -53
- data/tests/eigen/nonsymmv.rb +0 -53
- data/tests/eigen/symm-herm.rb +0 -74
- data/tests/err.rb +0 -58
- data/tests/fit.rb +0 -124
- data/tests/gsl_test.rb +0 -118
- data/tests/gsl_test2.rb +0 -110
- data/tests/histo.rb +0 -12
- data/tests/integration/integration1.rb +0 -72
- data/tests/integration/integration2.rb +0 -71
- data/tests/integration/integration3.rb +0 -71
- data/tests/integration/integration4.rb +0 -71
- data/tests/interp.rb +0 -45
- data/tests/linalg/HH.rb +0 -64
- data/tests/linalg/LU.rb +0 -47
- data/tests/linalg/QR.rb +0 -77
- data/tests/linalg/SV.rb +0 -24
- data/tests/linalg/TDN.rb +0 -116
- data/tests/linalg/TDS.rb +0 -122
- data/tests/linalg/bidiag.rb +0 -73
- data/tests/linalg/cholesky.rb +0 -20
- data/tests/linalg/linalg.rb +0 -158
- data/tests/matrix/matrix_complex_test.rb +0 -36
- data/tests/matrix/matrix_nmf_test.rb +0 -39
- data/tests/matrix/matrix_test.rb +0 -48
- data/tests/min.rb +0 -99
- data/tests/monte/miser.rb +0 -31
- data/tests/monte/vegas.rb +0 -45
- data/tests/multifit/test_2dgauss.rb +0 -112
- data/tests/multifit/test_brown.rb +0 -90
- data/tests/multifit/test_enso.rb +0 -246
- data/tests/multifit/test_filip.rb +0 -155
- data/tests/multifit/test_gauss.rb +0 -97
- data/tests/multifit/test_longley.rb +0 -110
- data/tests/multifit/test_multifit.rb +0 -52
- data/tests/multimin.rb +0 -139
- data/tests/multiroot.rb +0 -131
- data/tests/multiset.rb +0 -52
- data/tests/narray/blas_dnrm2.rb +0 -20
- data/tests/odeiv.rb +0 -353
- data/tests/poly/poly.rb +0 -290
- data/tests/poly/special.rb +0 -65
- data/tests/qrng.rb +0 -131
- data/tests/quartic.rb +0 -29
- data/tests/randist.rb +0 -134
- data/tests/rng.rb +0 -305
- data/tests/roots.rb +0 -76
- data/tests/run-test.sh +0 -17
- data/tests/sf/gsl_test_sf.rb +0 -249
- data/tests/sf/test_airy.rb +0 -83
- data/tests/sf/test_bessel.rb +0 -306
- data/tests/sf/test_coulomb.rb +0 -17
- data/tests/sf/test_dilog.rb +0 -25
- data/tests/sf/test_gamma.rb +0 -209
- data/tests/sf/test_hyperg.rb +0 -356
- data/tests/sf/test_legendre.rb +0 -227
- data/tests/sf/test_mathieu.rb +0 -59
- data/tests/sf/test_mode.rb +0 -19
- data/tests/sf/test_sf.rb +0 -839
- data/tests/stats.rb +0 -174
- data/tests/stats_mt.rb +0 -16
- data/tests/sum.rb +0 -98
- data/tests/sys.rb +0 -323
- data/tests/tensor.rb +0 -419
- data/tests/vector/vector_complex_test.rb +0 -101
- data/tests/vector/vector_test.rb +0 -141
- data/tests/wavelet.rb +0 -142
data/rdoc/cholesky_complex.rdoc
CHANGED
data/rdoc/combi.rdoc
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
#
|
2
2
|
# = Combinations
|
3
3
|
# Contents:
|
4
|
-
# 1. {Combination allocation}[link:
|
5
|
-
# 1. {Methods}[link:
|
6
|
-
# 1. {Accessing combination elements}[link:
|
7
|
-
# 1. {Combination properties}[link:
|
8
|
-
# 1. {Combination functions}[link:
|
9
|
-
# 1. {Reading and writing combinations}[link:
|
4
|
+
# 1. {Combination allocation}[link:rdoc/combi_rdoc.html#1]
|
5
|
+
# 1. {Methods}[link:rdoc/combi_rdoc.html#2]
|
6
|
+
# 1. {Accessing combination elements}[link:rdoc/combi_rdoc.html#2.1]
|
7
|
+
# 1. {Combination properties}[link:rdoc/combi_rdoc.html#2.2]
|
8
|
+
# 1. {Combination functions}[link:rdoc/combi_rdoc.html#2.3]
|
9
|
+
# 1. {Reading and writing combinations}[link:rdoc/combi_rdoc.html#2.4]
|
10
10
|
#
|
11
11
|
# == {}[link:index.html"name="1] Combination allocation
|
12
12
|
# ---
|
@@ -116,10 +116,10 @@
|
|
116
116
|
# end while c.next == GSL::SUCCESS
|
117
117
|
# end
|
118
118
|
#
|
119
|
-
# {prev}[link:
|
120
|
-
# {next}[link:
|
119
|
+
# {prev}[link:rdoc/perm_rdoc.html]
|
120
|
+
# {next}[link:rdoc/multiset_rdoc.html]
|
121
121
|
#
|
122
|
-
# {Reference index}[link:
|
123
|
-
# {top}[link:
|
122
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
123
|
+
# {top}[link:index.html]
|
124
124
|
#
|
125
125
|
#
|
data/rdoc/complex.rdoc
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
#
|
2
2
|
# = Complex Numbers
|
3
3
|
# Contents:
|
4
|
-
# 1. {Class methods}[link:
|
5
|
-
# 1. {Properties of Complex Numbers}[link:
|
6
|
-
# 1. {Complex Arithmetic Operators}[link:
|
7
|
-
# 1. {Elementary Complex Functions}[link:
|
8
|
-
# 1. {Complex Trigonometric Functions}[link:
|
9
|
-
# 1. {Inverse Complex Trigonometric Functions}[link:
|
10
|
-
# 1. {Complex Hyperbolic Functions}[link:
|
11
|
-
# 1. {Inverse Complex Hyperbolic Functions}[link:
|
4
|
+
# 1. {Class methods}[link:rdoc/complex_rdoc.html#1]
|
5
|
+
# 1. {Properties of Complex Numbers}[link:rdoc/complex_rdoc.html#2]
|
6
|
+
# 1. {Complex Arithmetic Operators}[link:rdoc/complex_rdoc.html#3]
|
7
|
+
# 1. {Elementary Complex Functions}[link:rdoc/complex_rdoc.html#4]
|
8
|
+
# 1. {Complex Trigonometric Functions}[link:rdoc/complex_rdoc.html#5]
|
9
|
+
# 1. {Inverse Complex Trigonometric Functions}[link:rdoc/complex_rdoc.html#6]
|
10
|
+
# 1. {Complex Hyperbolic Functions}[link:rdoc/complex_rdoc.html#7]
|
11
|
+
# 1. {Inverse Complex Hyperbolic Functions}[link:rdoc/complex_rdoc.html#8]
|
12
12
|
#
|
13
13
|
# == {}[link:index.html"name="1] Class Methods
|
14
14
|
# ---
|
@@ -201,10 +201,10 @@
|
|
201
201
|
# * GSL::Complex#arccoth(z)
|
202
202
|
#
|
203
203
|
#
|
204
|
-
# {prev}[link:
|
205
|
-
# {next}[link:
|
204
|
+
# {prev}[link:rdoc/math_rdoc.html]
|
205
|
+
# {next}[link:rdoc/poly_rdoc.html]
|
206
206
|
#
|
207
|
-
# {Reference index}[link:
|
208
|
-
# {top}[link:
|
207
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
208
|
+
# {top}[link:index.html]
|
209
209
|
#
|
210
210
|
#
|
data/rdoc/const.rdoc
CHANGED
@@ -15,23 +15,23 @@
|
|
15
15
|
# See also the {GSL reference}[http://www.gnu.org/software/gsl/manual/gsl-ref_37.html#SEC479"target="_top]
|
16
16
|
#
|
17
17
|
# Contents:
|
18
|
-
# 1. {Fundamental Constants}[link:
|
19
|
-
# 1. {Astronomy and Astrophysics}[link:
|
20
|
-
# 1. {Atomic and Nuclear Physics}[link:
|
21
|
-
# 1. {Measurement of Time}[link:
|
22
|
-
# 1. {Imperial Units}[link:
|
23
|
-
# 1. {Nautical Units}[link:
|
24
|
-
# 1. {Printers Units}[link:
|
25
|
-
# 1. {Volume}[link:
|
26
|
-
# 1. {Mass and Weight}[link:
|
27
|
-
# 1. {Thermal Energy and Power}[link:
|
28
|
-
# 1. {Pressure}[link:
|
29
|
-
# 1. {Viscosity}[link:
|
30
|
-
# 1. {Light and Illumination}[link:
|
31
|
-
# 1. {Radioactivity}[link:
|
32
|
-
# 1. {Force and Energy}[link:
|
33
|
-
# 1. {Prefixes}[link:
|
34
|
-
# 1. {Examples}[link:
|
18
|
+
# 1. {Fundamental Constants}[link:rdoc/const_rdoc.html#1]
|
19
|
+
# 1. {Astronomy and Astrophysics}[link:rdoc/const_rdoc.html#2]
|
20
|
+
# 1. {Atomic and Nuclear Physics}[link:rdoc/const_rdoc.html#3]
|
21
|
+
# 1. {Measurement of Time}[link:rdoc/const_rdoc.html#4]
|
22
|
+
# 1. {Imperial Units}[link:rdoc/const_rdoc.html#5]
|
23
|
+
# 1. {Nautical Units}[link:rdoc/const_rdoc.html#6]
|
24
|
+
# 1. {Printers Units}[link:rdoc/const_rdoc.html#7]
|
25
|
+
# 1. {Volume}[link:rdoc/const_rdoc.html#8]
|
26
|
+
# 1. {Mass and Weight}[link:rdoc/const_rdoc.html#9]
|
27
|
+
# 1. {Thermal Energy and Power}[link:rdoc/const_rdoc.html#10]
|
28
|
+
# 1. {Pressure}[link:rdoc/const_rdoc.html#11]
|
29
|
+
# 1. {Viscosity}[link:rdoc/const_rdoc.html#12]
|
30
|
+
# 1. {Light and Illumination}[link:rdoc/const_rdoc.html#13]
|
31
|
+
# 1. {Radioactivity}[link:rdoc/const_rdoc.html#14]
|
32
|
+
# 1. {Force and Energy}[link:rdoc/const_rdoc.html#15]
|
33
|
+
# 1. {Prefixes}[link:rdoc/const_rdoc.html#16]
|
34
|
+
# 1. {Examples}[link:rdoc/const_rdoc.html#17]
|
35
35
|
#
|
36
36
|
# == {}[link:index.html"name="1] Fundamental Constants
|
37
37
|
# ---
|
@@ -537,10 +537,10 @@
|
|
537
537
|
# printf("minimum = %.1f minutes\n", t_min / minutes);
|
538
538
|
# printf("maximum = %.1f minutes\n\n", t_max / minutes);
|
539
539
|
#
|
540
|
-
# {prev}[link:
|
541
|
-
# {next}[link:
|
540
|
+
# {prev}[link:rdoc/bspline_rdoc.html]
|
541
|
+
# {next}[link:rdoc/graph_rdoc.html]
|
542
542
|
#
|
543
|
-
# {Reference index}[link:
|
544
|
-
# {top}[link:
|
543
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
544
|
+
# {top}[link:index.html]
|
545
545
|
#
|
546
546
|
#
|
data/rdoc/dht.rdoc
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
# This chapter describes functions for performing Discrete Hankel Transforms
|
4
4
|
# (DHTs).
|
5
5
|
#
|
6
|
-
# 1. {Definitions}[link:
|
7
|
-
# 1. {Initialization}[link:
|
8
|
-
# 1. {Methods}[link:
|
6
|
+
# 1. {Definitions}[link:rdoc/dht_rdoc.html#1]
|
7
|
+
# 1. {Initialization}[link:rdoc/dht_rdoc.html#2]
|
8
|
+
# 1. {Methods}[link:rdoc/dht_rdoc.html#3]
|
9
9
|
#
|
10
10
|
# == {}[link:index.html"name="1] Definitions
|
11
11
|
# The discrete Hankel transform acts on a vector of sampled data, where the
|
@@ -113,10 +113,10 @@
|
|
113
113
|
#
|
114
114
|
# Return the (n,m)-th transform coefficient.
|
115
115
|
#
|
116
|
-
# {prev}[link:
|
117
|
-
# {next}[link:
|
116
|
+
# {prev}[link:rdoc/sum_rdoc.html]
|
117
|
+
# {next}[link:rdoc/roots_rdoc.html]
|
118
118
|
#
|
119
|
-
# {Reference index}[link:
|
120
|
-
# {top}[link:
|
119
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
120
|
+
# {top}[link:index.html]
|
121
121
|
#
|
122
122
|
#
|
data/rdoc/diff.rdoc
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
# of finite difference and to estimate the error in the derivative.
|
6
6
|
#
|
7
7
|
# Contentes:
|
8
|
-
# 1. {Deriv methods}[link:
|
9
|
-
# 1. {Diff methods}[link:
|
8
|
+
# 1. {Deriv methods}[link:rdoc/diff_rdoc.html#1]
|
9
|
+
# 1. {Diff methods}[link:rdoc/diff_rdoc.html#2]
|
10
10
|
#
|
11
11
|
# == {}[link:index.html"name="1] Deriv methods (for GSL 1.4.90 or later)
|
12
12
|
# Numerical derivatives should now be calculated using the
|
@@ -73,7 +73,7 @@
|
|
73
73
|
# * GSL::Diff.central(f, x)
|
74
74
|
# * GSL::Function#diff_central(x)
|
75
75
|
#
|
76
|
-
# These compute the numerical derivative of the function <tt>f</tt> ( {GSL::Function}[link:
|
76
|
+
# These compute the numerical derivative of the function <tt>f</tt> ( {GSL::Function}[link:rdoc/function_rdoc.html] object) at the point <tt>x</tt>
|
77
77
|
# using an adaptive central difference algorithm. The result is returned as an array
|
78
78
|
# which contains the derivative and an estimate of its absolute error.
|
79
79
|
#
|
@@ -124,10 +124,10 @@
|
|
124
124
|
# f'(x) = 0.0000000160 +/- 0.0000000339
|
125
125
|
# exact = 0.0000000000
|
126
126
|
#
|
127
|
-
# {prev}[link:
|
128
|
-
# {next}[link:
|
127
|
+
# {prev}[link:rdoc/interp_rdoc.html]
|
128
|
+
# {next}[link:rdoc/cheb_rdoc.html]
|
129
129
|
#
|
130
|
-
# {Reference index}[link:
|
131
|
-
# {top}[link:
|
130
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
131
|
+
# {top}[link:index.html]
|
132
132
|
#
|
133
133
|
#
|
data/rdoc/ehandling.rdoc
CHANGED
@@ -42,9 +42,9 @@
|
|
42
42
|
# This replaces the Ruby/GSL default error handler by a user-defined handler
|
43
43
|
# given by a Proc object <tt>proc</tt> or a block.
|
44
44
|
#
|
45
|
-
# {prev}[link:
|
46
|
-
# {next}[link:
|
45
|
+
# {prev}[link:rdoc/use_rdoc.html]
|
46
|
+
# {next}[link:rdoc/math_rdoc.html]
|
47
47
|
#
|
48
|
-
# {Reference index}[link:
|
49
|
-
# {top}[link:
|
48
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
49
|
+
# {top}[link:index.html]
|
50
50
|
#
|
data/rdoc/eigen.rdoc
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
#
|
2
2
|
# = Eigensystems
|
3
3
|
# === {}[link:index.html"name="0.1] Contentes
|
4
|
-
# 1. {Modules and classes}[link:
|
5
|
-
# 1. {Real Symmetric Matrices}[link:
|
6
|
-
# 1. {Complex Hermitian Matrices}[link:
|
7
|
-
# 1. {Real Nonsymmetric Matrices}[link:
|
8
|
-
# 1. {Real Generalized Symmetric-Definite Eigensystems}[link:
|
9
|
-
# 1. {Complex Generalized Hermitian-Definite Eigensystems}[link:
|
10
|
-
# 1. {Real Generalized Nonsymmetric Eigensystems}[link:
|
11
|
-
# 1. {Sorting Eigenvalues and Eigenvectors }[link:
|
4
|
+
# 1. {Modules and classes}[link:rdoc/eigen_rdoc.html#1]
|
5
|
+
# 1. {Real Symmetric Matrices}[link:rdoc/eigen_rdoc.html#2]
|
6
|
+
# 1. {Complex Hermitian Matrices}[link:rdoc/eigen_rdoc.html#3]
|
7
|
+
# 1. {Real Nonsymmetric Matrices}[link:rdoc/eigen_rdoc.html#4] (>= GSL-1.9)
|
8
|
+
# 1. {Real Generalized Symmetric-Definite Eigensystems}[link:rdoc/eigen_rdoc.html#5] (>= GSL-1.10)
|
9
|
+
# 1. {Complex Generalized Hermitian-Definite Eigensystems}[link:rdoc/eigen_rdoc.html#6] (>= GSL-1.10)
|
10
|
+
# 1. {Real Generalized Nonsymmetric Eigensystems}[link:rdoc/eigen_rdoc.html#7] (>= GSL-1.10)
|
11
|
+
# 1. {Sorting Eigenvalues and Eigenvectors }[link:rdoc/eigen_rdoc.html#8]
|
12
12
|
#
|
13
13
|
# == {}[link:index.html"name="1] Modules and classes
|
14
14
|
#
|
@@ -392,10 +392,10 @@
|
|
392
392
|
# and <tt>GSL::EIGEN_SORT_ABS_DESC</tt> are supported due to the eigenvalues
|
393
393
|
# being complex.
|
394
394
|
#
|
395
|
-
# {prev}[link:
|
396
|
-
# {next}[link:
|
395
|
+
# {prev}[link:rdoc/linalg_rdoc.html]
|
396
|
+
# {next}[link:rdoc/fft_rdoc.html]
|
397
397
|
#
|
398
|
-
# {Reference index}[link:
|
399
|
-
# {top}[link:
|
398
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
399
|
+
# {top}[link:index.html]
|
400
400
|
#
|
401
401
|
#
|
data/rdoc/fft.rdoc
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
#
|
2
2
|
# = Fast Fourier Transforms
|
3
3
|
# Contents:
|
4
|
-
# 1. {Mathematical Definitions}[link:
|
5
|
-
# 1. {Complex data FFTs}[link:
|
6
|
-
# 1. {Overview of complex data FFTs}[link:
|
7
|
-
# 1. {Radix-2 FFT routines for complex data}[link:
|
8
|
-
# 1. {Example of the complex Radix-2 FFT}[link:
|
9
|
-
# 1. {Mixed-radix FFT routines for complex data}[link:
|
10
|
-
# 1. {GSL::FFT::ComplexWavetable class}[link:
|
11
|
-
# 1. {GSL::FFT::ComplexWorkspace class}[link:
|
12
|
-
# 1. {Methods to compute the transform}[link:
|
13
|
-
# 1. {Example of the mixed-radix FFT}[link:
|
14
|
-
# 1. {Real data FFTs}[link:
|
15
|
-
# 1. {Overview of real data FFTs}[link:
|
16
|
-
# 1. {Radix-2 FFT routines for real data}[link:
|
17
|
-
# 1. {Mixed-radix FFT routines for real data}[link:
|
18
|
-
# 1. {Data storage scheme}[link:
|
19
|
-
# 1. {Wavetable and Workspace classes}[link:
|
20
|
-
# 1. {Methods for real FFTs}[link:
|
21
|
-
# 1. {Examples}[link:
|
4
|
+
# 1. {Mathematical Definitions}[link:rdoc/fft_rdoc.html#1]
|
5
|
+
# 1. {Complex data FFTs}[link:rdoc/fft_rdoc.html#2]
|
6
|
+
# 1. {Overview of complex data FFTs}[link:rdoc/fft_rdoc.html#2.1]
|
7
|
+
# 1. {Radix-2 FFT routines for complex data}[link:rdoc/fft_rdoc.html#2.2]
|
8
|
+
# 1. {Example of the complex Radix-2 FFT}[link:rdoc/fft_rdoc.html#2.2.1]
|
9
|
+
# 1. {Mixed-radix FFT routines for complex data}[link:rdoc/fft_rdoc.html#2.3]
|
10
|
+
# 1. {GSL::FFT::ComplexWavetable class}[link:rdoc/fft_rdoc.html#2.3.1]
|
11
|
+
# 1. {GSL::FFT::ComplexWorkspace class}[link:rdoc/fft_rdoc.html#2.3.2]
|
12
|
+
# 1. {Methods to compute the transform}[link:rdoc/fft_rdoc.html#2.3.3]
|
13
|
+
# 1. {Example of the mixed-radix FFT}[link:rdoc/fft_rdoc.html#2.3.4]
|
14
|
+
# 1. {Real data FFTs}[link:rdoc/fft_rdoc.html#3]
|
15
|
+
# 1. {Overview of real data FFTs}[link:rdoc/fft_rdoc.html#3.1]
|
16
|
+
# 1. {Radix-2 FFT routines for real data}[link:rdoc/fft_rdoc.html#3.2]
|
17
|
+
# 1. {Mixed-radix FFT routines for real data}[link:rdoc/fft_rdoc.html#3.3]
|
18
|
+
# 1. {Data storage scheme}[link:rdoc/fft_rdoc.html#3.3.1]
|
19
|
+
# 1. {Wavetable and Workspace classes}[link:rdoc/fft_rdoc.html#3.3.2]
|
20
|
+
# 1. {Methods for real FFTs}[link:rdoc/fft_rdoc.html#3.3.3]
|
21
|
+
# 1. {Examples}[link:rdoc/fft_rdoc.html#3.3.4]
|
22
22
|
#
|
23
23
|
# == {}[link:index.html"name="1] Mathematical Definitions
|
24
24
|
# Fast Fourier Transforms are efficient algorithms for calculating the discrete
|
@@ -59,7 +59,7 @@
|
|
59
59
|
# == {}[link:index.html"name="2] Complex data FFTs
|
60
60
|
# === {}[link:index.html"name="2.1] Overview of complex data FFTs
|
61
61
|
# The complex data FFT routines are provided as instance methods of
|
62
|
-
# {GSL::Vector::Complex}[link:
|
62
|
+
# {GSL::Vector::Complex}[link:rdoc/vector_complex_rdoc.html].
|
63
63
|
#
|
64
64
|
# Here is a table which shows the layout of the array data, and the correspondence
|
65
65
|
# between the time-domain complex data z, and the frequency-domain complex data x.
|
@@ -82,7 +82,7 @@
|
|
82
82
|
# frequencies +1/(2 Delta), -1/(2 Delta) which are equivalent. If N is odd then
|
83
83
|
# general structure of the table above still applies, but N/2 does not appear.
|
84
84
|
#
|
85
|
-
# {GSL::Vector::Complex}[link:
|
85
|
+
# {GSL::Vector::Complex}[link:rdoc/vector_complex_rdoc.html] provides four methods for
|
86
86
|
# shifting the frequency domain data between <b>FFT order</b>, shown in the table
|
87
87
|
# above, and <b>natural order</b>, which has the most negative freqeuncy component
|
88
88
|
# first, the zero frequency component in the middle, and the most positive
|
@@ -263,7 +263,7 @@
|
|
263
263
|
# === {}[link:index.html"name="3.1] Overview of real data FFTs
|
264
264
|
#
|
265
265
|
# The functions for real data FFTs are provided as instance methods of
|
266
|
-
# {GSL::Vector}[link:
|
266
|
+
# {GSL::Vector}[link:rdoc/vector.class]. While they are similar to those for
|
267
267
|
# complex data, there is an important difference in the data storage layout
|
268
268
|
# between forward and inverse transforms. The Fourier transform of a real
|
269
269
|
# sequence is not real. It is a complex sequence with a special symmetry. A
|
@@ -274,7 +274,7 @@
|
|
274
274
|
# Forward transforms of real sequences produce half complex sequences of the same
|
275
275
|
# length. Backward and inverse transforms of half complex sequences produce real
|
276
276
|
# sequences of the same length. In both cases, the input and output sequences
|
277
|
-
# are instances of {GSL::Vector}[link:
|
277
|
+
# are instances of {GSL::Vector}[link:rdoc/vector_rdoc.html].
|
278
278
|
#
|
279
279
|
# The precise storage arrangements of half complex seqeunces depend on the
|
280
280
|
# algorithm, and are different for radix-2 and mixed-radix routines. The radix-2
|
@@ -288,7 +288,7 @@
|
|
288
288
|
#
|
289
289
|
# === {}[link:index.html"name="3.2] Radix-2 FFT routines for real data
|
290
290
|
# The routines for readix-2 real FFTs are provided as instance methods of
|
291
|
-
# {GSL::Vector}[link:
|
291
|
+
# {GSL::Vector}[link:rdoc/vector_rdoc.html].
|
292
292
|
#
|
293
293
|
# <b>The FFT methods described below return FFTed data, and the input vector is
|
294
294
|
# not changed. Use methods with '!' as <tt>radix2_tranform!</tt> for in-place
|
@@ -526,10 +526,10 @@
|
|
526
526
|
#
|
527
527
|
# graph(nil, data, data2, "-T X -C -g 3 -L 'Real-halfcomplex' -x 0 #{data.size}")
|
528
528
|
#
|
529
|
-
# {prev}[link:
|
530
|
-
# {next}[link:
|
529
|
+
# {prev}[link:rdoc/eigen_rdoc.html]
|
530
|
+
# {next}[link:rdoc/wavelet_rdoc.html]
|
531
531
|
#
|
532
|
-
# {Reference index}[link:
|
533
|
-
# {top}[link:
|
532
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
533
|
+
# {top}[link:index.html]
|
534
534
|
#
|
535
535
|
#
|
data/rdoc/fit.rdoc
CHANGED
@@ -11,19 +11,19 @@
|
|
11
11
|
# two-parameter regression and multiple-parameter fits.
|
12
12
|
#
|
13
13
|
# Contents:
|
14
|
-
# 1. {Overview}[link:
|
15
|
-
# 1. {Linear regression}[link:
|
16
|
-
# 1. {Module functions for linear regression}[link:
|
17
|
-
# 1. {Linear fitting without a constant term}[link:
|
18
|
-
# 1. {Multi-parameter fitting}[link:
|
19
|
-
# 1. {GSL::MultiFit::Workspace class}[link:
|
20
|
-
# 1. {Module functions}[link:
|
21
|
-
# 1. {Higer level interface}[link:
|
22
|
-
# 1. {NDLINEAR: multi-linear, multi-parameter least squares fitting}[link:
|
23
|
-
# 1. {Examples}[link:
|
24
|
-
# 1. {Linear regression}[link:
|
25
|
-
# 1. {Exponential fitting}[link:
|
26
|
-
# 1. {Multi-parameter fitting}[link:
|
14
|
+
# 1. {Overview}[link:rdoc/fit_rdoc.html#1]
|
15
|
+
# 1. {Linear regression}[link:rdoc/fit_rdoc.html#2]
|
16
|
+
# 1. {Module functions for linear regression}[link:rdoc/fit_rdoc.html#2.1]
|
17
|
+
# 1. {Linear fitting without a constant term}[link:rdoc/fit_rdoc.html#3]
|
18
|
+
# 1. {Multi-parameter fitting}[link:rdoc/fit_rdoc.html#4]
|
19
|
+
# 1. {GSL::MultiFit::Workspace class}[link:rdoc/fit_rdoc.html#4.1]
|
20
|
+
# 1. {Module functions}[link:rdoc/fit_rdoc.html#4.2]
|
21
|
+
# 1. {Higer level interface}[link:rdoc/fit_rdoc.html#4.3]
|
22
|
+
# 1. {NDLINEAR: multi-linear, multi-parameter least squares fitting}[link:rdoc/ndlinear_rdoc.html] (GSL extension)
|
23
|
+
# 1. {Examples}[link:rdoc/fit_rdoc.html#5]
|
24
|
+
# 1. {Linear regression}[link:rdoc/fit_rdoc.html#5.1]
|
25
|
+
# 1. {Exponential fitting}[link:rdoc/fit_rdoc.html#5.2]
|
26
|
+
# 1. {Multi-parameter fitting}[link:rdoc/fit_rdoc.html#5.3]
|
27
27
|
#
|
28
28
|
# == {}[link:index.html"name="1] Overview
|
29
29
|
# Least-squares fits are found by minimizing \chi^2 (chi-squared), the weighted
|
@@ -145,9 +145,9 @@
|
|
145
145
|
# from the scatter of the observations about the best-fit. The sum of squares
|
146
146
|
# of the residuals from the best-fit is also calculated. The returned value is
|
147
147
|
# an array of 4 elements, <tt>[c, cov, chisq, status]</tt>, where <tt>c</tt> is a
|
148
|
-
# {GSL::Vector}[link:
|
148
|
+
# {GSL::Vector}[link:rdoc/vector_rdoc.html] object which contains the best-fit parameters,
|
149
149
|
# and <tt>cov</tt> is the variance-covariance matrix as a
|
150
|
-
# {GSL::Matrix}[link:
|
150
|
+
# {GSL::Matrix}[link:rdoc/matrix_rdoc.html] object.
|
151
151
|
#
|
152
152
|
# The best-fit is found by singular value decomposition of the matrix <tt>X</tt>
|
153
153
|
# using the workspace provided in <tt>work</tt> (optional, if not given, it is allocated
|
@@ -275,10 +275,10 @@
|
|
275
275
|
#
|
276
276
|
# c, cov, chisq, status = MultiFit.wlinear(X, w, y)
|
277
277
|
#
|
278
|
-
# {prev}[link:
|
279
|
-
# {next}[link:
|
278
|
+
# {prev}[link:rdoc/multimin_rdoc.html]
|
279
|
+
# {next}[link:rdoc/nonlinearfit_rdoc.html]
|
280
280
|
#
|
281
|
-
# {Reference index}[link:
|
282
|
-
# {top}[link:
|
281
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
282
|
+
# {top}[link:index.html]
|
283
283
|
#
|
284
284
|
#
|
data/rdoc/function.rdoc
CHANGED
data/rdoc/graph.rdoc
CHANGED
@@ -129,9 +129,9 @@
|
|
129
129
|
# end
|
130
130
|
# end
|
131
131
|
#
|
132
|
-
# {prev}[link:
|
132
|
+
# {prev}[link:rdoc/const_rdoc.html]
|
133
133
|
#
|
134
|
-
# {Reference index}[link:
|
135
|
-
# {top}[link:
|
134
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
135
|
+
# {top}[link:index.html]
|
136
136
|
#
|
137
137
|
#
|
data/rdoc/hist.rdoc
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
#
|
2
2
|
# = Histograms
|
3
|
-
# 1. {Histogram allocation}[link:
|
4
|
-
# 1. {Copying histograms}[link:
|
5
|
-
# 1. {Updating and accessing histogram elements}[link:
|
6
|
-
# 1. {Searching histogram ranges}[link:
|
7
|
-
# 1. {Histogram Statistics}[link:
|
8
|
-
# 1. {Histogram Operations}[link:
|
9
|
-
# 1. {Reading and writing histograms}[link:
|
10
|
-
# 1. {Extensions}[link:
|
11
|
-
# 1. {Histogram Operations}[link:
|
12
|
-
# 1. {Graph interface}[link:
|
13
|
-
# 1. {Histogram Fittings}[link:
|
14
|
-
# 1. {The histogram probability distribution}[link:
|
3
|
+
# 1. {Histogram allocation}[link:rdoc/hist_rdoc.html#1]
|
4
|
+
# 1. {Copying histograms}[link:rdoc/hist_rdoc.html#2]
|
5
|
+
# 1. {Updating and accessing histogram elements}[link:rdoc/hist_rdoc.html#3]
|
6
|
+
# 1. {Searching histogram ranges}[link:rdoc/hist_rdoc.html#4]
|
7
|
+
# 1. {Histogram Statistics}[link:rdoc/hist_rdoc.html#5]
|
8
|
+
# 1. {Histogram Operations}[link:rdoc/hist_rdoc.html#6]
|
9
|
+
# 1. {Reading and writing histograms}[link:rdoc/hist_rdoc.html#7]
|
10
|
+
# 1. {Extensions}[link:rdoc/hist_rdoc.html#8]
|
11
|
+
# 1. {Histogram Operations}[link:rdoc/hist_rdoc.html#8.1]
|
12
|
+
# 1. {Graph interface}[link:rdoc/hist_rdoc.html#8.2]
|
13
|
+
# 1. {Histogram Fittings}[link:rdoc/hist_rdoc.html#8.3]
|
14
|
+
# 1. {The histogram probability distribution}[link:rdoc/hist_rdoc.html#9]
|
15
15
|
#
|
16
16
|
# == {}[link:index.html"name="1] Histogram allocation
|
17
17
|
# ---
|
@@ -71,7 +71,7 @@
|
|
71
71
|
# ---
|
72
72
|
# * GSL::Histogram#set_ranges(v)
|
73
73
|
#
|
74
|
-
# This sets the ranges of the existing histogram using a {GSL::Vector}[link:
|
74
|
+
# This sets the ranges of the existing histogram using a {GSL::Vector}[link:rdoc/vector_rdoc.html] object.
|
75
75
|
# ---
|
76
76
|
# * GSL::Histogram#set_ranges_uniform(xmin, xmax)
|
77
77
|
# * GSL::Histogram#set_ranges_uniform([xmin, xmax])
|
@@ -400,10 +400,10 @@
|
|
400
400
|
# This returns a <tt>Vector::View</tt> object as a reference to the pointer
|
401
401
|
# <tt>double *sum</tt> in the <tt>gsl_histogram_pdf</tt> struct.
|
402
402
|
#
|
403
|
-
# {prev}[link:
|
404
|
-
# {next}[link:
|
403
|
+
# {prev}[link:rdoc/stats_rdoc.html]
|
404
|
+
# {next}[link:rdoc/hist2d_rdoc.html]
|
405
405
|
#
|
406
|
-
# {Reference index}[link:
|
407
|
-
# {top}[link:
|
406
|
+
# {Reference index}[link:rdoc/ref_rdoc.html]
|
407
|
+
# {top}[link:index.html]
|
408
408
|
#
|
409
409
|
#
|