-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gsl_interp.html
175 lines (157 loc) · 10.4 KB
/
Gsl_interp.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Gsl_poly.html">
<link rel="next" href="Gsl_rng.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Gsl_error" rel="Chapter" href="Gsl_error.html">
<link title="Gsl_ieee" rel="Chapter" href="Gsl_ieee.html">
<link title="Gsl_math" rel="Chapter" href="Gsl_math.html">
<link title="Gsl_complex" rel="Chapter" href="Gsl_complex.html">
<link title="Gsl_vector" rel="Chapter" href="Gsl_vector.html">
<link title="Gsl_vector_flat" rel="Chapter" href="Gsl_vector_flat.html">
<link title="Gsl_vector_complex" rel="Chapter" href="Gsl_vector_complex.html">
<link title="Gsl_vector_complex_flat" rel="Chapter" href="Gsl_vector_complex_flat.html">
<link title="Gsl_matrix" rel="Chapter" href="Gsl_matrix.html">
<link title="Gsl_matrix_flat" rel="Chapter" href="Gsl_matrix_flat.html">
<link title="Gsl_matrix_complex" rel="Chapter" href="Gsl_matrix_complex.html">
<link title="Gsl_matrix_complex_flat" rel="Chapter" href="Gsl_matrix_complex_flat.html">
<link title="Gsl_vectmat" rel="Chapter" href="Gsl_vectmat.html">
<link title="Gsl_blas" rel="Chapter" href="Gsl_blas.html">
<link title="Gsl_blas_flat" rel="Chapter" href="Gsl_blas_flat.html">
<link title="Gsl_blas_gen" rel="Chapter" href="Gsl_blas_gen.html">
<link title="Gsl_fun" rel="Chapter" href="Gsl_fun.html">
<link title="Gsl_permut" rel="Chapter" href="Gsl_permut.html">
<link title="Gsl_sort" rel="Chapter" href="Gsl_sort.html">
<link title="Gsl_linalg" rel="Chapter" href="Gsl_linalg.html">
<link title="Gsl_eigen" rel="Chapter" href="Gsl_eigen.html">
<link title="Gsl_poly" rel="Chapter" href="Gsl_poly.html">
<link title="Gsl_interp" rel="Chapter" href="Gsl_interp.html">
<link title="Gsl_rng" rel="Chapter" href="Gsl_rng.html">
<link title="Gsl_qrng" rel="Chapter" href="Gsl_qrng.html">
<link title="Gsl_randist" rel="Chapter" href="Gsl_randist.html">
<link title="Gsl_integration" rel="Chapter" href="Gsl_integration.html">
<link title="Gsl_fit" rel="Chapter" href="Gsl_fit.html">
<link title="Gsl_multifit" rel="Chapter" href="Gsl_multifit.html">
<link title="Gsl_multifit_nlin" rel="Chapter" href="Gsl_multifit_nlin.html">
<link title="Gsl_root" rel="Chapter" href="Gsl_root.html">
<link title="Gsl_multiroot" rel="Chapter" href="Gsl_multiroot.html">
<link title="Gsl_min" rel="Chapter" href="Gsl_min.html">
<link title="Gsl_multimin" rel="Chapter" href="Gsl_multimin.html">
<link title="Gsl_diff" rel="Chapter" href="Gsl_diff.html">
<link title="Gsl_cheb" rel="Chapter" href="Gsl_cheb.html">
<link title="Gsl_sum" rel="Chapter" href="Gsl_sum.html">
<link title="Gsl_fft" rel="Chapter" href="Gsl_fft.html">
<link title="Gsl_monte" rel="Chapter" href="Gsl_monte.html">
<link title="Gsl_siman" rel="Chapter" href="Gsl_siman.html">
<link title="Gsl_odeiv" rel="Chapter" href="Gsl_odeiv.html">
<link title="Gsl_histo" rel="Chapter" href="Gsl_histo.html">
<link title="Gsl_stats" rel="Chapter" href="Gsl_stats.html">
<link title="Gsl_wavelet" rel="Chapter" href="Gsl_wavelet.html">
<link title="Gsl_bspline" rel="Chapter" href="Gsl_bspline.html">
<link title="Gsl_const" rel="Chapter" href="Gsl_const.html">
<link title="Gsl_sf" rel="Chapter" href="Gsl_sf.html">
<link title="Gsl_cdf" rel="Chapter" href="Gsl_cdf.html"><link title="Higher level functions" rel="Section" href="#3_Higherlevelfunctions">
<title>ocamlgsl 1.10.0 : Gsl_interp</title>
</head>
<body>
<div class="navbar"><a href="Gsl_poly.html">Previous</a>
<a href="index.html">Up</a>
<a href="Gsl_rng.html">Next</a>
</div>
<center><h1>Module <a href="type_Gsl_interp.html">Gsl_interp</a></h1></center>
<br>
<pre><span class="keyword">module</span> Gsl_interp: <code class="code">sig</code> <a href="Gsl_interp.html">..</a> <code class="code">end</code></pre>Interpolation<br>
<hr width="100%">
<pre><span id="TYPEt"><span class="keyword">type</span> <code class="type"></code>t</span> </pre>
<pre><span id="TYPEaccel"><span class="keyword">type</span> <code class="type"></code>accel</span> </pre>
<br><code><span id="TYPEinterp_type"><span class="keyword">type</span> <code class="type"></code>interp_type</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">LINEAR</span></code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">POLYNOMIAL</span></code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">CSPLINE</span></code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">CSPLINE_PERIODIC</span></code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">AKIMA</span></code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">AKIMA_PERIODIC</span></code></td>
</tr></table>
<pre><span id="VALmake"><span class="keyword">val</span> make</span> : <code class="type"><a href="Gsl_interp.html#TYPEinterp_type">interp_type</a> -> int -> <a href="Gsl_interp.html#TYPEt">t</a></code></pre><pre><span id="VALinit"><span class="keyword">val</span> init</span> : <code class="type"><a href="Gsl_interp.html#TYPEt">t</a> -> float array -> float array -> unit</code></pre><pre><span id="VALname"><span class="keyword">val</span> name</span> : <code class="type"><a href="Gsl_interp.html#TYPEt">t</a> -> string</code></pre><pre><span id="VALmin_size"><span class="keyword">val</span> min_size</span> : <code class="type"><a href="Gsl_interp.html#TYPEt">t</a> -> int</code></pre><pre><span id="VALmake_accel"><span class="keyword">val</span> make_accel</span> : <code class="type">unit -> <a href="Gsl_interp.html#TYPEaccel">accel</a></code></pre><pre><span id="VALi_eval"><span class="keyword">val</span> i_eval</span> : <code class="type"><a href="Gsl_interp.html#TYPEt">t</a> -><br> float array -> float array -> float -> <a href="Gsl_interp.html#TYPEaccel">accel</a> -> float</code></pre><pre><span id="VALi_eval_deriv"><span class="keyword">val</span> i_eval_deriv</span> : <code class="type"><a href="Gsl_interp.html#TYPEt">t</a> -><br> float array -> float array -> float -> <a href="Gsl_interp.html#TYPEaccel">accel</a> -> float</code></pre><pre><span id="VALi_eval_deriv2"><span class="keyword">val</span> i_eval_deriv2</span> : <code class="type"><a href="Gsl_interp.html#TYPEt">t</a> -><br> float array -> float array -> float -> <a href="Gsl_interp.html#TYPEaccel">accel</a> -> float</code></pre><pre><span id="VALi_eval_integ"><span class="keyword">val</span> i_eval_integ</span> : <code class="type"><a href="Gsl_interp.html#TYPEt">t</a> -><br> float array -> float array -> float -> float -> <a href="Gsl_interp.html#TYPEaccel">accel</a> -> float</code></pre><br>
<span id="3_Higherlevelfunctions"><h3>Higher level functions</h3></span><br>
<br><code><span id="TYPEinterp"><span class="keyword">type</span> <code class="type"></code>interp</span> = {</code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code> </code></td>
<td align="left" valign="top" >
<code>interp : <code class="type"><a href="Gsl_interp.html#TYPEt">t</a></code>;</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code> </code></td>
<td align="left" valign="top" >
<code>accel : <code class="type"><a href="Gsl_interp.html#TYPEaccel">accel</a></code>;</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code> </code></td>
<td align="left" valign="top" >
<code>xa : <code class="type">float array</code>;</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code> </code></td>
<td align="left" valign="top" >
<code>ya : <code class="type">float array</code>;</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code> </code></td>
<td align="left" valign="top" >
<code>size : <code class="type">int</code>;</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code> </code></td>
<td align="left" valign="top" >
<code>i_type : <code class="type"><a href="Gsl_interp.html#TYPEinterp_type">interp_type</a></code>;</code></td>
</tr></table>
}
<pre><span id="VALmake_interp"><span class="keyword">val</span> make_interp</span> : <code class="type"><a href="Gsl_interp.html#TYPEinterp_type">interp_type</a> -> float array -> float array -> <a href="Gsl_interp.html#TYPEinterp">interp</a></code></pre><pre><span id="VALeval"><span class="keyword">val</span> eval</span> : <code class="type"><a href="Gsl_interp.html#TYPEinterp">interp</a> -> float -> float</code></pre><pre><span id="VALeval_array"><span class="keyword">val</span> eval_array</span> : <code class="type"><a href="Gsl_interp.html#TYPEinterp">interp</a> -> float array -> float array -> unit</code></pre><div class="info">
<code class="code">eval_array interp x_a y_a</code> fills the array <code class="code">y_a</code> with the
evaluation of the interpolation function <code class="code">interp</code> for each point
of array <code class="code">x_a</code>. <code class="code">x_a</code> and <code class="code">y_a</code> must have the same length.<br>
</div>
<pre><span id="VALeval_deriv"><span class="keyword">val</span> eval_deriv</span> : <code class="type"><a href="Gsl_interp.html#TYPEinterp">interp</a> -> float -> float</code></pre><pre><span id="VALeval_deriv2"><span class="keyword">val</span> eval_deriv2</span> : <code class="type"><a href="Gsl_interp.html#TYPEinterp">interp</a> -> float -> float</code></pre><pre><span id="VALeval_integ"><span class="keyword">val</span> eval_integ</span> : <code class="type"><a href="Gsl_interp.html#TYPEinterp">interp</a> -> float -> float -> float</code></pre></body></html>