@@ -4,15 +4,15 @@ The GSL-FFI-RUNNING-STATISTICS module
44.. current-library :: dylan-gsl
55.. current-module :: gsl-ffi-running-statistics
66
7- Classes
8- =======
7+ Running statistics
8+ ==================
99
1010.. class :: <gsl-rstat-workspace>
1111
1212 Accumulator used to store the running statistics.
1313
1414Initializing the Accumulator
15- ============================
15+ ----------------------------
1616
1717.. function :: gsl-rstat-alloc
1818
@@ -36,23 +36,26 @@ Initializing the Accumulator
3636
3737.. function :: gsl-rstat-reset
3838
39- :signature: gsl-rstat-reset (workspace) => ()
39+ :signature: gsl-rstat-reset (workspace) => (status )
4040
4141 :parameter workspace: An instance of :class: `<gsl-rstat-workspace*> `.
42+ :value status: An instance of :class: `<c-int> `
4243
4344 :description:
4445
4546 Reset a :class: `<gsl-rstat-workspace> `.
4647
4748Adding Data to the Accumulator
48- ==============================
49+ ------------------------------
4950
5051.. function :: gsl-rstat-add
5152
5253 :signature: gsl-rstat-add (workspace x) => (status)
5354
5455 :parameter workspace: An instance of :class: `<gsl-rstat-workspace*> `.
55- :parameter x: An instance of :class: `<double-float> `.
56+ :parameter x: An instance of :class: `<c-double> `.
57+ :value status: An instance of :class: `<c-int> `.
58+
5659
5760 :description:
5861
@@ -70,7 +73,7 @@ Adding Data to the Accumulator
7073 Get the number of values so far added to the :class: `<gsl-rstat-workspace> `.
7174
7275Current Statistics
73- ==================
76+ ------------------
7477
7578.. function :: gsl-rstat-min
7679
@@ -180,4 +183,71 @@ Current Statistics
180183
181184 :description:
182185
183- Get the norm value so far added to the :class: `<gsl-rstat-workspace> `.
186+ Get the norm value so far added to the :class: `<gsl-rstat-workspace> `.
187+
188+ Quantiles
189+ =========
190+
191+ .. class :: <gsl-rstat-quantile>
192+
193+ Accumulator used to store the running quantiles.
194+
195+ Initializing the Accumulator
196+ ----------------------------
197+
198+ .. function :: gsl-rstat-quantile-alloc
199+
200+ :signature: gsl-rstat-quantile-alloc (p) => (quantile)
201+
202+ :parameter p: The quantile to compute.
203+ :value quantile: An instance of :class: `<gsl-rstat-quantile*> `.
204+
205+ .. function :: gsl-rstat-quantile-free
206+
207+ :signature: gsl-rstat-quantile-free (quantile) => ()
208+
209+ :parameter quantile: An instance of :class: `<gsl-rstat-quantile*> `.
210+
211+ :description:
212+
213+ Free a :class: `<gsl-rstat-quantile*> `.
214+
215+ .. function :: gsl-rstat-quantile-reset
216+
217+ :signature: gsl-rstat-quantile-reset (quantile) => (status)
218+
219+ :parameter quantile: An instance of :class: `<gsl-rstat-quantile*> `.
220+ :value status: An instance of :class: `<c-int> `.
221+
222+ :description:
223+
224+ Reset a :class: `<gsl-rstat-quantile*> `.
225+
226+ Adding Data to the Accumulator
227+ ------------------------------
228+
229+ .. function :: gsl-rstat-quantile-add
230+
231+ :signature: gsl-rstat-quantile-add (x quantile) => (status)
232+
233+ :parameter x: An instance of :class: `<c-double> `.
234+ :parameter quantile: An instance of :class: `<gsl-rstat-quantile*> `.
235+ :value status: An instance of :class: `<c-int> `.
236+
237+ :description:
238+
239+ Add a new value to the :class: `<gsl-rstat-quantile*> `.
240+
241+ Current Statistics
242+ ------------------
243+
244+ .. function :: gsl-rstat-quantile-get
245+
246+ :signature: gsl-rstat-quantile-get (quantile) => (quantile)
247+
248+ :parameter quantile: An instance of :class: `<gsl-rstat-quantile*> `.
249+ :value quantile: The quantile value in the accumulator.
250+
251+ :description:
252+
253+ Get the quantile value so far added to the :class: `<gsl-rstat-quantile*> `.
0 commit comments