aRts audio server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gsl.3 32KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822
  1. .TH "GSL-Functions" 3 "17 May 2002" "BEAST-0.4.1" "BEAST-0.4.1"
  2. .SH NAME
  3. GSL-Functions \- GSL Function Reference
  4. .SH SYNOPSIS
  5. \fBgsl_thread_wakeup\fP (\fIthread\fP);
  6. .br
  7. \fBgsl_thread_abort\fP (\fIthread\fP);
  8. .br
  9. \fBgsl_thread_queue_abort\fP (\fIthread\fP);
  10. .br
  11. \fBgsl_thread_aborted\fP ();
  12. .br
  13. \fBgsl_thread_sleep\fP (\fImax_msec\fP);
  14. .br
  15. \fBgsl_thread_awake_after\fP (\fItick_stamp\fP);
  16. .br
  17. \fBgsl_thread_awake_before\fP (\fItick_stamp\fP);
  18. .br
  19. \fBgsl_tick_stamp\fP ();
  20. .br
  21. \fBgsl_data_find_block\fP (\fIhandle\fP, \fIn_values\fP, \fIvalues\fP, \fIepsilon\fP);
  22. .br
  23. \fBgsl_module_tick_stamp\fP (\fImodule\fP);
  24. .br
  25. \fBgsl_job_integrate\fP (\fImodule\fP);
  26. .br
  27. \fBgsl_job_discard\fP (\fImodule\fP);
  28. .br
  29. \fBgsl_job_connect\fP (\fIsrc_module\fP, \fIsrc_ostream\fP, \fIdest_module\fP, \fIdest_istream\fP);
  30. .br
  31. \fBgsl_job_disconnect\fP (\fIdest_module\fP, \fIdest_istream\fP);
  32. .br
  33. \fBGslAccessFunc\fP (\fImodule\fP, \fIdata\fP);
  34. .br
  35. \fBgsl_job_access\fP (\fImodule\fP, \fIaccess_func\fP, \fIdata\fP, \fIfree_func\fP);
  36. .br
  37. \fBgsl_flow_job_access\fP (\fImodule\fP, \fItick_stamp\fP, \fIaccess_func\fP, \fIdata\fP, \fIfree_func\fP);
  38. .br
  39. \fBGslPollFunc\fP (\fIdata\fP, \fIn_values\fP, \fItimeout_p\fP, \fIn_fds\fP, \fIfds\fP, \fIrevents_filled\fP);
  40. .br
  41. \fBgsl_job_add_poll\fP (\fIpoll_func\fP, \fIdata\fP, \fIfree_func\fP, \fIn_fds\fP, \fIfds\fP);
  42. .br
  43. \fBgsl_job_remove_poll\fP (\fIpoll_func\fP, \fIdata\fP);
  44. .br
  45. \fBgsl_job_debug\fP (\fIdebug\fP);
  46. .br
  47. \fBgsl_trans_open\fP ();
  48. .br
  49. \fBgsl_trans_add\fP (\fItrans\fP, \fIjob\fP);
  50. .br
  51. \fBgsl_trans_commit\fP (\fItrans\fP);
  52. .br
  53. \fBgsl_trans_dismiss\fP (\fItrans\fP);
  54. .br
  55. \fBgsl_transact\fP (\fIjob\fP, \fI...\fP);
  56. .br
  57. \fBgsl_engine_init\fP (\fIrun_threaded\fP, \fIblock_size\fP, \fIsample_freq\fP, \fIsub_sample_tqmask\fP);
  58. .br
  59. \fBgsl_engine_wait_on_trans\fP ();
  60. .br
  61. \fBgsl_power2_fftac\fP (\fIn_values\fP, \fIri_values_in\fP, \fIri_values_out\fP);
  62. .br
  63. \fBgsl_power2_fftsc\fP (\fIn_values\fP, \fIri_values_in\fP, \fIri_values_out\fP);
  64. .br
  65. \fBgsl_power2_fftar\fP (\fIn_values\fP, \fIr_values_in\fP, \fIri_values_out\fP);
  66. .br
  67. \fBgsl_power2_fftsr\fP (\fIn_values\fP, \fIri_values_in\fP, \fIr_values_out\fP);
  68. .br
  69. \fBgsl_filter_tscheb2_steepness_db\fP (\fIiorder\fP, \fIc_freq\fP, \fIepsilon\fP, \fIstopband_db\fP);
  70. .br
  71. \fBgsl_filter_tscheb2_steepness\fP (\fIiorder\fP, \fIc_freq\fP, \fIepsilon\fP, \fIresidue\fP);
  72. .br
  73. \fBgsl_filter_butter_lp\fP (\fIiorder\fP, \fIfreq\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  74. .br
  75. \fBgsl_filter_tscheb1_lp\fP (\fIiorder\fP, \fIfreq\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  76. .br
  77. \fBgsl_filter_tscheb2_lp\fP (\fIiorder\fP, \fIfreq\fP, \fIsteepness\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  78. .br
  79. \fBgsl_filter_butter_hp\fP (\fIiorder\fP, \fIfreq\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  80. .br
  81. \fBgsl_filter_tscheb1_hp\fP (\fIiorder\fP, \fIfreq\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  82. .br
  83. \fBgsl_filter_tscheb2_hp\fP (\fIiorder\fP, \fIfreq\fP, \fIsteepness\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  84. .br
  85. \fBgsl_filter_butter_bp\fP (\fIiorder\fP, \fIfreq1\fP, \fIfreq2\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  86. .br
  87. \fBgsl_filter_tscheb1_bp\fP (\fIiorder\fP, \fIfreq1\fP, \fIfreq2\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  88. .br
  89. \fBgsl_filter_tscheb2_bp\fP (\fIiorder\fP, \fIfreq1\fP, \fIfreq2\fP, \fIsteepness\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  90. .br
  91. \fBgsl_filter_butter_bs\fP (\fIiorder\fP, \fIfreq1\fP, \fIfreq2\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  92. .br
  93. \fBgsl_filter_tscheb1_bs\fP (\fIiorder\fP, \fIfreq1\fP, \fIfreq2\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  94. .br
  95. \fBgsl_filter_tscheb2_bs\fP (\fIiorder\fP, \fIfreq1\fP, \fIfreq2\fP, \fIsteepness\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  96. .br
  97. \fBgsl_filter_fir_approx\fP (\fIiorder\fP, \fIfreq\fP, \fIvalue\fP);
  98. .br
  99. \fBgsl_filter_sine_scan\fP (\fIorder\fP, \fIa\fP, \fIb\fP, \fIfreq\fP, \fIn_values\fP);
  100. .br
  101. \fBgsl_engine_garbage_collect\fP ();
  102. .br
  103. \fBgsl_signal_exp2\fP ();
  104. .br
  105. \fBgsl_approx_exp2\fP (\fIex\fP);
  106. .br
  107. \fBgsl_approx_atan1\fP (\fIx\fP);
  108. .br
  109. \fBgsl_approx_atan1_prescale\fP (\fIboost_amount\fP);
  110. .br
  111. \fBgsl_approx_qcircle1\fP (\fIx\fP);
  112. .br
  113. \fBgsl_approx_qcircle2\fP (\fIx\fP);
  114. .br
  115. \fBgsl_approx_qcircle3\fP (\fIx\fP);
  116. .br
  117. \fBgsl_approx_qcircle4\fP (\fIx\fP);
  118. .br
  119. .SH DESCRIPTION
  120. .SS \fBgsl_thread_wakeup\fP (\fIthread\fP);
  121. .PD 0
  122. .IP \fIGslThread*\ thread\fP 19
  123. thread to wake up
  124. .PD 1
  125. .PP
  126. Wake up a currently sleeping thread. In practice, this function simply causes the next call to \fBgsl_thread_sleep()\fP within \fIthread\fP to last for 0 seconds.
  127. .PD
  128. .SS \fBgsl_thread_abort\fP (\fIthread\fP);
  129. .PD 0
  130. .IP \fIGslThread*\ thread\fP 19
  131. thread to abort
  132. .PD 1
  133. .PP
  134. Abort a currently running thread. This function does not return until the thread in question terminated execution. Note that the thread handle gets invalidated with invocation of \fBgsl_thread_abort()\fP or \fBgsl_thread_queue_abort()\fP.
  135. .PD
  136. .SS \fBgsl_thread_queue_abort\fP (\fIthread\fP);
  137. .PD 0
  138. .IP \fIGslThread*\ thread\fP 19
  139. thread to abort
  140. .PD 1
  141. .PP
  142. Same as \fBgsl_thread_abort()\fP, but returns as soon as possible, even if thread hasn't stopped execution yet. Note that the thread handle gets invalidated with invocation of \fBgsl_thread_abort()\fP or \fBgsl_thread_queue_abort()\fP.
  143. .PD
  144. .SS \fBgsl_thread_aborted\fP ();
  145. .PD 0
  146. .IP \fIRETURNS:\fP 11
  147. \fITRUE\fP if the thread should abort execution
  148. .PD 1
  149. .PP
  150. Find out if the currently running thread should be aborted (the thread is supposed to return from its main thread function).
  151. .PD
  152. .SS \fBgsl_thread_sleep\fP (\fImax_msec\fP);
  153. .PD 0
  154. .IP \fIglong\ \ max_msec\fP 17
  155. maximum amount of milli seconds to sleep (-1 for infinite time)
  156. .IP \fIRETURNS:\fP 17
  157. \fITRUE\fP if the thread should continue execution
  158. .PD 1
  159. .PP
  160. Sleep for the amount of time given. This function may get interrupted by wakeup or abort requests, it returns whether the thread is supposed to continue execution after waking up.
  161. .PD
  162. .SS \fBgsl_thread_awake_after\fP (\fItick_stamp\fP);
  163. .PD 0
  164. .IP \fIguint64\ \ tick_stamp\fP 21
  165. tick stamp update to trigger wakeup
  166. .PD 1
  167. .PP
  168. Wakeup the currently running thread after the global tick stamp (see \fBgsl_tick_stamp()\fP) has been updated to \fItick_stamp\fP. (If the moment of wakeup has already passed by, the thread is woken up at the next global tick stamp update.)
  169. .PD
  170. .SS \fBgsl_thread_awake_before\fP (\fItick_stamp\fP);
  171. .PD 0
  172. .IP \fIguint64\ \ tick_stamp\fP 21
  173. tick stamp update to trigger wakeup
  174. .PD 1
  175. .PP
  176. Wakeup the currently running thread upon the last global tick stamp update (see \fBgsl_tick_stamp()\fP) that happens prior to updating the global tick stamp to \fItick_stamp\fP. (If the moment of wakeup has already passed by, the thread is woken up at the next global tick stamp update.)
  177. .PD
  178. .SS \fBgsl_tick_stamp\fP ();
  179. .PD 0
  180. .IP \fIRETURNS:\fP 11
  181. GSL's execution tick stamp as unsigned 64bit integer
  182. .PD 1
  183. .PP
  184. Retrive the GSL global tick stamp. GSL increments its global tick stamp at certain intervals, by specific amounts (refer to \fBgsl_engine_init()\fP for further details). The tick stamp is a non-wrapping, unsigned 64bit integer greater than 0. Threads can schedule sleep interruptions at certain tick stamps with \fBgsl_thread_awake_after()\fP and \fBgsl_thread_awake_before()\fP. Tick stamp updating occours at GSL engine block processing boundaries, so code that can guarantee to not run across those boundaries (for instance \fBGslProcessFunc()\fP functions) may use the macro \fIGSL_TICK_STAMP\fP to retrive the current tick in a faster manner (not involving mutex locking). See also \fBgsl_module_tick_stamp()\fP.
  185. .PD
  186. .SS \fBgsl_data_find_block\fP (\fIhandle\fP, \fIn_values\fP, \fIvalues\fP, \fIepsilon\fP);
  187. .PD 0
  188. .IP \fIGslDataHandle*\ handle\fP 25
  189. an open GslDataHandle
  190. .IP \fIguint\ \ \ \ \ \ \ \ \ \ n_values\fP 25
  191. amount of values to look for
  192. .IP \fIconst\ gfloat*\ \ values\fP 25
  193. values to find
  194. .IP \fIgfloat\ \ \ \ \ \ \ \ \ epsilon\fP 25
  195. maximum difference upon comparisions
  196. .IP \fIRETURNS:\fP 25
  197. position of values in data handle or -1
  198. .PD 1
  199. .PP
  200. Find the position of a block of values within a data handle, where all values compare to the reference values with a delta smaller than epsilon.
  201. .PD
  202. .SS \fBgsl_module_tick_stamp\fP (\fImodule\fP);
  203. .PD 0
  204. .IP \fIGslModule*\ module\fP 19
  205. a GSL engine module
  206. .IP \fIRETURNS:\fP 19
  207. the module's tick stamp, indicating its process status
  208. .PD 1
  209. .PP
  210. Any thread may call this function on a valid engine module. The module specific tick stamp is updated to \fBgsl_tick_stamp()\fP + \fIn_values\fP every time its \fBGslProcessFunc()\fP function was called. See also \fBgsl_tick_stamp()\fP.
  211. .PD
  212. .SS \fBgsl_job_integrate\fP (\fImodule\fP);
  213. .PD 0
  214. .IP \fIGslModule*\ module\fP 19
  215. The module to integrate
  216. .IP \fIRETURNS:\fP 19
  217. New job suitable for \fBgsl_trans_add()\fP
  218. .PD 1
  219. .PP
  220. Create a new transaction job to integrate \fImodule\fP into the engine.
  221. .PD
  222. .SS \fBgsl_job_discard\fP (\fImodule\fP);
  223. .PD 0
  224. .IP \fIGslModule*\ module\fP 19
  225. The module to discard
  226. .IP \fIRETURNS:\fP 19
  227. New job suitable for \fBgsl_trans_add()\fP
  228. .PD 1
  229. .PP
  230. Create a new transaction job which removes \fImodule\fP from the engine and destroys it.
  231. .PD
  232. .SS \fBgsl_job_connect\fP (\fIsrc_module\fP, \fIsrc_ostream\fP, \fIdest_module\fP, \fIdest_istream\fP);
  233. .PD 0
  234. .IP \fIGslModule*\ src_module\fP 25
  235. Module with output stream
  236. .IP \fIguint\ \ \ \ \ \ src_ostream\fP 25
  237. Index of output stream of \fIsrc_module\fP
  238. .IP \fIGslModule*\ dest_module\fP 25
  239. Module with unconnected input stream
  240. .IP \fIguint\ \ \ \ \ \ dest_istream\fP 25
  241. Index of input stream of \fIdest_module\fP
  242. .IP \fIRETURNS:\fP 25
  243. New job suitable for \fBgsl_trans_add()\fP
  244. .PD 1
  245. .PP
  246. Create a new transaction job which connects the ouput stream \fIsrc_ostream\fP of module \fIsrc_module\fP to the input stream \fIdest_istream\fP of module \fIdest_module\fP (it is an error if the input stream is already connected by the time the job is executed).
  247. .PD
  248. .SS \fBgsl_job_disconnect\fP (\fIdest_module\fP, \fIdest_istream\fP);
  249. .PD 0
  250. .IP \fIGslModule*\ dest_module\fP 25
  251. Module with connected input stream
  252. .IP \fIguint\ \ \ \ \ \ dest_istream\fP 25
  253. Index of input stream of \fIdest_module\fP
  254. .IP \fIRETURNS:\fP 25
  255. New job suitable for \fBgsl_trans_add()\fP
  256. .PD 1
  257. .PP
  258. Create a new transaction job which causes the input stream \fIdest_istream\fP of \fIdest_module\fP to be disconnected (it is an error if the input stream isn't connected by the time the job is executed).
  259. .PD
  260. .SS \fBGslAccessFunc\fP (\fImodule\fP, \fIdata\fP);
  261. .PD 0
  262. .IP \fI\ module\fP 9
  263. Module to operate on
  264. .IP \fI\ data\fP 9
  265. Accessor data
  266. .PD 1
  267. .PP
  268. The GslAccessFunc is a user supplied callback function which can access a module in times it is not processing. Accessors are usually used to either read out a module's current state, or to modify its state. An accessor may only operate on the \fIdata\fP and the \fImodule\fP passed in to it.
  269. .PD
  270. .SS \fBgsl_job_access\fP (\fImodule\fP, \fIaccess_func\fP, \fIdata\fP, \fIfree_func\fP);
  271. .PD 0
  272. .IP \fIGslModule*\ \ \ \ \ module\fP 28
  273. The module to access
  274. .IP \fIGslAccessFunc\ \ access_func\fP 28
  275. The accessor function
  276. .IP \fIgpointer\ \ \ \ \ \ \ data\fP 28
  277. Data passed in to the accessor
  278. .IP \fIGslFreeFunc\ \ \ \ free_func\fP 28
  279. Function to free \fIdata\fP
  280. .IP \fIRETURNS:\fP 28
  281. New job suitable for \fBgsl_trans_add()\fP
  282. .PD 1
  283. .PP
  284. Create a new transaction job which will invoke \fIaccess_func\fP on \fImodule\fP with \fIdata\fP when the transaction queue is processed to modify the module's state.
  285. .PD
  286. .SS \fBgsl_flow_job_access\fP (\fImodule\fP, \fItick_stamp\fP, \fIaccess_func\fP, \fIdata\fP, \fIfree_func\fP);
  287. .PD 0
  288. .IP \fIGslModule*\ \ \ \ \ module\fP 28
  289. .IP \fIguint64\ \ \ \ \ \ \ \ tick_stamp\fP 28
  290. .IP \fIGslAccessFunc\ \ access_func\fP 28
  291. .IP \fIgpointer\ \ \ \ \ \ \ data\fP 28
  292. .IP \fIGslFreeFunc\ \ \ \ free_func\fP 28
  293. .PD 1
  294. .PP
  295. .PD
  296. .SS \fBGslPollFunc\fP (\fIdata\fP, \fIn_values\fP, \fItimeout_p\fP, \fIn_fds\fP, \fIfds\fP, \fIrevents_filled\fP);
  297. .PD 0
  298. .IP \fI\ data\fP 17
  299. Data of poll function
  300. .IP \fI\ n_values\fP 17
  301. Minimum number of values the engine wants to process
  302. .IP \fI\ timeout_p\fP 17
  303. Location of timeout value
  304. .IP \fI\ n_fds\fP 17
  305. Number of file descriptors used for polling
  306. .IP \fI\ fds\fP 17
  307. File descriptors to be used for polling
  308. .IP \fI\ revents_filled\fP 17
  309. Indicates whether \fIfds\fP actually have their ->revents field filled with valid data.
  310. .IP \fIRETURNS:\fP 17
  311. A boolean value indicating whether the engine should process data right now
  312. .PD 1
  313. .PP
  314. The GslPollFunc is a user supplied callback function which can be hooked into the GSL engine. The engine uses the poll functions to determine whether processing of \fIn_values\fP in its module network is necessary. In order for the poll functions to react to extern events, such as device driver status changes, the engine will \fBpoll(2)\fP the \fIfds\fP of the poll function and invoke the callback with \fIrevents_filled\fP==\fITRUE\fP if any of its \fIfds\fP changed state. The callback may also be invoked at other random times with \fIrevents_filled\fP=\fIFALSE\fP. It is supposed to return \fITRUE\fP if network processing is currently necessary, and \fIFALSE\fP if not. If \fIFALSE\fP is returned, \fItimeout_p\fP may be filled with the number of milliseconds the engine should use for polling at maximum.
  315. .PD
  316. .SS \fBgsl_job_add_poll\fP (\fIpoll_func\fP, \fIdata\fP, \fIfree_func\fP, \fIn_fds\fP, \fIfds\fP);
  317. .PD 0
  318. .IP \fIGslPollFunc\ \ \ \ \ \ poll_func\fP 28
  319. Poll function to add
  320. .IP \fIgpointer\ \ \ \ \ \ \ \ \ data\fP 28
  321. Data of poll function
  322. .IP \fIGslFreeFunc\ \ \ \ \ \ free_func\fP 28
  323. Function to free \fIdata\fP
  324. .IP \fIguint\ \ \ \ \ \ \ \ \ \ \ \ n_fds\fP 28
  325. Number of poll file descriptors
  326. .IP \fIconst\ GslPollFD*\ fds\fP 28
  327. File descriptors to \fBselect(2)\fP or \fBpoll(2)\fP on
  328. .IP \fIRETURNS:\fP 28
  329. New job suitable for \fBgsl_trans_add()\fP
  330. .PD 1
  331. .PP
  332. Create a new transaction job which adds a poll function to the engine. The poll function is used by the engine to determine whether processing is currently necessary.
  333. .PD
  334. .SS \fBgsl_job_remove_poll\fP (\fIpoll_func\fP, \fIdata\fP);
  335. .PD 0
  336. .IP \fIGslPollFunc\ \ poll_func\fP 24
  337. Poll function to remove
  338. .IP \fIgpointer\ \ \ \ \ data\fP 24
  339. Data of poll function
  340. .IP \fIRETURNS:\fP 24
  341. New job suitable for \fBgsl_trans_add()\fP
  342. .PD 1
  343. .PP
  344. Create a new transaction job which removes a previously inserted poll function from the engine.
  345. .PD
  346. .SS \fBgsl_job_debug\fP (\fIdebug\fP);
  347. .PD 0
  348. .IP \fIconst\ gchar*\ debug\fP 20
  349. Debug message
  350. .IP \fIRETURNS:\fP 20
  351. New job suitable for \fBgsl_trans_add()\fP
  352. .PD 1
  353. .PP
  354. Create a new transaction job which issues \fIdebug\fP message when the job is executed. This function is meant for debugging purposes during development phase only and shouldn't be used in production code.
  355. .PD
  356. .SS \fBgsl_trans_open\fP ();
  357. .PD 0
  358. .IP \fIRETURNS:\fP 11
  359. Newly opened empty transaction
  360. .PD 1
  361. .PP
  362. Open up a new transaction to commit jobs to the GSL engine. This function may cause garbage collection (see \fBgsl_engine_garbage_collect()\fP).
  363. .PD
  364. .SS \fBgsl_trans_add\fP (\fItrans\fP, \fIjob\fP);
  365. .PD 0
  366. .IP \fIGslTrans*\ trans\fP 17
  367. Opened transaction
  368. .IP \fIGslJob*\ \ \ job\fP 17
  369. Job to add
  370. .PD 1
  371. .PP
  372. Append a job to an opened transaction.
  373. .PD
  374. .SS \fBgsl_trans_commit\fP (\fItrans\fP);
  375. .PD 0
  376. .IP \fIGslTrans*\ trans\fP 17
  377. Opened transaction
  378. .PD 1
  379. .PP
  380. Close the transaction and commit it to the engine. The engine will execute the jobs contained in this transaction as soon as it has completed its current processing cycle. The jobs will be executed in the exact order they were added to the transaction.
  381. .PD
  382. .SS \fBgsl_trans_dismiss\fP (\fItrans\fP);
  383. .PD 0
  384. .IP \fIGslTrans*\ trans\fP 17
  385. Opened transaction
  386. .PD 1
  387. .PP
  388. Close and discard the transaction, destroy all jobs currently contained in it and do not execute them. This function may cause garbage collection (see \fBgsl_engine_garbage_collect()\fP).
  389. .PD
  390. .SS \fBgsl_transact\fP (\fIjob\fP, \fI...\fP);
  391. .PD 0
  392. .IP \fI\ job\fP 6
  393. First job
  394. .IP \fI\ ...\fP 6
  395. \fINULL\fP terminated job list
  396. .PD 1
  397. .PP
  398. Convenience function which openes up a new transaction, collects the \fINULL\fP terminated job list passed to the function, and commits the transaction.
  399. .PD
  400. .SS \fBgsl_engine_init\fP (\fIrun_threaded\fP, \fIblock_size\fP, \fIsample_freq\fP, \fIsub_sample_tqmask\fP);
  401. .PD 0
  402. .IP \fIgboolean\ \ run_threaded\fP 27
  403. .IP \fIguint\ \ \ \ \ block_size\fP 27
  404. number of values to process block wise
  405. .IP \fIguint\ \ \ \ \ sample_freq\fP 27
  406. .IP \fIguint\ \ \ \ \ sub_sample_tqmask\fP 27
  407. .PD 1
  408. .PP
  409. Initialize the GSL engine, this function must be called prior to any other engine related function and can only be invoked once. The \fIblock_size\fP determines the amount by which the global tick stamp (see \fBgsl_tick_stamp()\fP) is updated everytime the whole module network completed processing \fIblock_size\fP values.
  410. .PD
  411. .SS \fBgsl_engine_wait_on_trans\fP ();
  412. .PD 0
  413. .PD 1
  414. .PP
  415. Wait until all pending transactions have been processed by the GSL Engine. This function may cause garbage collection (see \fBgsl_engine_garbage_collect()\fP).
  416. .PD
  417. .SS \fBgsl_power2_fftac\fP (\fIn_values\fP, \fIri_values_in\fP, \fIri_values_out\fP);
  418. .PD 0
  419. .IP \fI\ n_values\fP 16
  420. Number of complex values
  421. .IP \fI\ ri_values_in\fP 16
  422. Complex sample values [0..n_values*2-1]
  423. .IP \fI\ ri_values_out\fP 16
  424. Complex frequency values [0..n_values*2-1]
  425. .PD 1
  426. .PP
  427. This function performs a decimation in time fourier transformation in forward direction, where the input values are equidistant sampled data, and the output values contain the frequency proportions of the input. The input and output arrays are complex values with real and imaginery portions interleaved, adressable in the range [0..2*n_values-1], where n_values must be a power of two. Frequencies are stored in-order, the K-th output corresponds to the frequency K/n_values. (If you want to interpret negative frequencies, note that the frequencies -K/n_values and (n_values-K)/n_values are equivalent). Note that the transformation is performed out of place, the input array is not modified, and may not overlap with the output array.
  428. .PD
  429. .SS \fBgsl_power2_fftsc\fP (\fIn_values\fP, \fIri_values_in\fP, \fIri_values_out\fP);
  430. .PD 0
  431. .IP \fI\ n_values\fP 16
  432. Number of complex values
  433. .IP \fI\ ri_values_in\fP 16
  434. Complex frequency values [0..n_values*2-1]
  435. .IP \fI\ ri_values_out\fP 16
  436. Complex sample values [0..n_values*2-1]
  437. .PD 1
  438. .PP
  439. This function performs a decimation in time fourier transformation in backwards direction with normalization. As such, this function represents the counterpart to \fBgsl_power2_fftac()\fP, that is, a value array which is transformed into the frequency domain with \fBgsl_power2_fftac()\fP can be reconstructed by issuing \fBgsl_power2_fftsc()\fP on the transform. Note that the transformation is performed out of place, the input array is not modified, and may not overlap with the output array.
  440. .PD
  441. .SS \fBgsl_power2_fftar\fP (\fIn_values\fP, \fIr_values_in\fP, \fIri_values_out\fP);
  442. .PD 0
  443. .IP \fI\ n_values\fP 16
  444. Number of complex values
  445. .IP \fI\ r_values_in\fP 16
  446. Real sample values [0..n_values-1]
  447. .IP \fI\ ri_values_out\fP 16
  448. Complex frequency values [0..n_values-1]
  449. .PD 1
  450. .PP
  451. Real valued variant of \fBgsl_power2_fftac()\fP, the input array contains real valued equidistant sampled data [0..n_values-1], and the output array contains the positive frequency half of the complex valued fourier transform. Note, that the complex valued fourier transform H of a purely real valued set of data, satisfies \fBH(-f)\fP = Conj(\fBH(f)\fP), where \fBConj()\fP denotes the complex conjugate, so that just the positive frequency half suffices to describe the entire frequency spectrum. Even so, the resulting n_values/2 complex frequencies are one value off in storage size, but the resulting frequencies \fBH(0)\fP and \fBH(n_values/2)\fP are both real valued, so the real portion of \fBH(n_values/2)\fP is stored in ri_values_out[1] (the imaginery part of \fBH(0)\fP), so that both r_values_in and ri_values_out can be of size n_values. Note that the transformation is performed out of place, the input array is not modified, and may not overlap with the output array.
  452. .PD
  453. .SS \fBgsl_power2_fftsr\fP (\fIn_values\fP, \fIri_values_in\fP, \fIr_values_out\fP);
  454. .PD 0
  455. .IP \fI\ n_values\fP 15
  456. Number of complex values
  457. .IP \fI\ ri_values_in\fP 15
  458. Complex frequency values [0..n_values-1]
  459. .IP \fI\ r_values_out\fP 15
  460. Real sample values [0..n_values-1]
  461. .PD 1
  462. .PP
  463. Real valued variant of \fBgsl_power2_fftsc()\fP, counterpart to \fBgsl_power2_fftar()\fP, using the same frequency storage format. A real valued data set transformed into the frequency domain with \fBgsl_power2_fftar()\fP can be reconstructed using this function. Note that the transformation is performed out of place, the input array is not modified, and may not overlap with the output array.
  464. .PD
  465. .SS \fBgsl_filter_tscheb2_steepness_db\fP (\fIiorder\fP, \fIc_freq\fP, \fIepsilon\fP, \fIstopband_db\fP);
  466. .PD 0
  467. .IP \fIunsigned\ int\ \ iorder\fP 27
  468. filter order
  469. .IP \fIdouble\ \ \ \ \ \ \ \ c_freq\fP 27
  470. passband cutoff frequency (0..pi)
  471. .IP \fIdouble\ \ \ \ \ \ \ \ epsilon\fP 27
  472. fall off at passband frequency (0..1)
  473. .IP \fIdouble\ \ \ \ \ \ \ \ stopband_db\fP 27
  474. reduction in stopband in dB (>= 0)
  475. .PD 1
  476. .PP
  477. Calculates the steepness parameter for Tschebyscheff type 2 lowpass filter, based on the ripple residue in the stop band.
  478. .PD
  479. .SS \fBgsl_filter_tscheb2_steepness\fP (\fIiorder\fP, \fIc_freq\fP, \fIepsilon\fP, \fIresidue\fP);
  480. .PD 0
  481. .IP \fIunsigned\ int\ \ iorder\fP 23
  482. filter order
  483. .IP \fIdouble\ \ \ \ \ \ \ \ c_freq\fP 23
  484. passband cutoff frequency (0..pi)
  485. .IP \fIdouble\ \ \ \ \ \ \ \ epsilon\fP 23
  486. fall off at passband frequency (0..1)
  487. .IP \fIdouble\ \ \ \ \ \ \ \ residue\fP 23
  488. maximum of transfer function in stopband (0..1)
  489. .PD 1
  490. .PP
  491. Calculates the steepness parameter for Tschebyscheff type 2 lowpass filter, based on ripple residue in the stop band.
  492. .PD
  493. .SS \fBgsl_filter_butter_lp\fP (\fIiorder\fP, \fIfreq\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  494. .PD 0
  495. .IP \fI\ iorder\fP 10
  496. filter order
  497. .IP \fI\ freq\fP 10
  498. cutoff frequency (0..pi)
  499. .IP \fI\ epsilon\fP 10
  500. fall off at cutoff frequency (0..1)
  501. .IP \fI\ a\fP 10
  502. root polynomial coefficients a[0..iorder]
  503. .IP \fI\ b\fP 10
  504. pole polynomial coefficients b[0..iorder]
  505. .PD 1
  506. .PP
  507. Butterworth lowpass filter.
  508. .PD
  509. .SS \fBgsl_filter_tscheb1_lp\fP (\fIiorder\fP, \fIfreq\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  510. .PD 0
  511. .IP \fI\ iorder\fP 10
  512. filter order
  513. .IP \fI\ freq\fP 10
  514. cutoff frequency (0..pi)
  515. .IP \fI\ epsilon\fP 10
  516. fall off at cutoff frequency (0..1)
  517. .IP \fI\ a\fP 10
  518. root polynomial coefficients a[0..iorder]
  519. .IP \fI\ b\fP 10
  520. pole polynomial coefficients b[0..iorder]
  521. .PD 1
  522. .PP
  523. Tschebyscheff type 1 lowpass filter.
  524. .PD
  525. .SS \fBgsl_filter_tscheb2_lp\fP (\fIiorder\fP, \fIfreq\fP, \fIsteepness\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  526. .PD 0
  527. .IP \fI\ iorder\fP 12
  528. filter order
  529. .IP \fI\ freq\fP 12
  530. passband cutoff frequency (0..pi)
  531. .IP \fI\ steepness\fP 12
  532. frequency steepness (c_freq * steepness < pi)
  533. .IP \fI\ epsilon\fP 12
  534. fall off at passband frequency (0..1)
  535. .IP \fI\ a\fP 12
  536. root polynomial coefficients a[0..iorder]
  537. .IP \fI\ b\fP 12
  538. pole polynomial coefficients b[0..iorder]
  539. .PD 1
  540. .PP
  541. Tschebyscheff type 2 lowpass filter. To gain a transition band between freq1 and freq2, pass arguements \fIfreq\fP=freq1 and \fIsteepness\fP=freq2/freq1. To specify the transition band width in fractions of octaves, pass \fIsteepness\fP=2^octave_fraction.
  542. .PD
  543. .SS \fBgsl_filter_butter_hp\fP (\fIiorder\fP, \fIfreq\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  544. .PD 0
  545. .IP \fI\ iorder\fP 10
  546. filter order
  547. .IP \fI\ freq\fP 10
  548. passband frequency (0..pi)
  549. .IP \fI\ epsilon\fP 10
  550. fall off at passband frequency (0..1)
  551. .IP \fI\ a\fP 10
  552. root polynomial coefficients a[0..iorder]
  553. .IP \fI\ b\fP 10
  554. pole polynomial coefficients b[0..iorder]
  555. .PD 1
  556. .PP
  557. Butterworth highpass filter.
  558. .PD
  559. .SS \fBgsl_filter_tscheb1_hp\fP (\fIiorder\fP, \fIfreq\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  560. .PD 0
  561. .IP \fI\ iorder\fP 10
  562. filter order
  563. .IP \fI\ freq\fP 10
  564. passband frequency (0..pi)
  565. .IP \fI\ epsilon\fP 10
  566. fall off at passband frequency (0..1)
  567. .IP \fI\ a\fP 10
  568. root polynomial coefficients a[0..iorder]
  569. .IP \fI\ b\fP 10
  570. pole polynomial coefficients b[0..iorder]
  571. .PD 1
  572. .PP
  573. Tschebyscheff type 1 highpass filter.
  574. .PD
  575. .SS \fBgsl_filter_tscheb2_hp\fP (\fIiorder\fP, \fIfreq\fP, \fIsteepness\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  576. .PD 0
  577. .IP \fI\ iorder\fP 12
  578. filter order
  579. .IP \fI\ freq\fP 12
  580. stopband frequency (0..pi)
  581. .IP \fI\ steepness\fP 12
  582. frequency steepness
  583. .IP \fI\ epsilon\fP 12
  584. fall off at passband frequency (0..1)
  585. .IP \fI\ a\fP 12
  586. root polynomial coefficients a[0..iorder]
  587. .IP \fI\ b\fP 12
  588. pole polynomial coefficients b[0..iorder]
  589. .PD 1
  590. .PP
  591. Tschebyscheff type 2 highpass filter.
  592. .PD
  593. .SS \fBgsl_filter_butter_bp\fP (\fIiorder\fP, \fIfreq1\fP, \fIfreq2\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  594. .PD 0
  595. .IP \fI\ iorder\fP 10
  596. filter order (must be even)
  597. .IP \fI\ freq1\fP 10
  598. stopband end frequency (0..pi)
  599. .IP \fI\ freq2\fP 10
  600. passband end frequency (0..pi)
  601. .IP \fI\ epsilon\fP 10
  602. fall off at passband frequency (0..1)
  603. .IP \fI\ a\fP 10
  604. root polynomial coefficients a[0..iorder]
  605. .IP \fI\ b\fP 10
  606. pole polynomial coefficients b[0..iorder]
  607. .PD 1
  608. .PP
  609. Butterworth bandpass filter.
  610. .PD
  611. .SS \fBgsl_filter_tscheb1_bp\fP (\fIiorder\fP, \fIfreq1\fP, \fIfreq2\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  612. .PD 0
  613. .IP \fI\ iorder\fP 10
  614. filter order (must be even)
  615. .IP \fI\ freq1\fP 10
  616. stopband end frequency (0..pi)
  617. .IP \fI\ freq2\fP 10
  618. passband end frequency (0..pi)
  619. .IP \fI\ epsilon\fP 10
  620. fall off at passband frequency (0..1)
  621. .IP \fI\ a\fP 10
  622. root polynomial coefficients a[0..iorder]
  623. .IP \fI\ b\fP 10
  624. pole polynomial coefficients b[0..iorder]
  625. .PD 1
  626. .PP
  627. Tschebyscheff type 1 bandpass filter.
  628. .PD
  629. .SS \fBgsl_filter_tscheb2_bp\fP (\fIiorder\fP, \fIfreq1\fP, \fIfreq2\fP, \fIsteepness\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  630. .PD 0
  631. .IP \fI\ iorder\fP 12
  632. filter order (must be even)
  633. .IP \fI\ freq1\fP 12
  634. stopband end frequency (0..pi)
  635. .IP \fI\ freq2\fP 12
  636. passband end frequency (0..pi)
  637. .IP \fI\ steepness\fP 12
  638. frequency steepness factor
  639. .IP \fI\ epsilon\fP 12
  640. fall off at passband frequency (0..1)
  641. .IP \fI\ a\fP 12
  642. root polynomial coefficients a[0..iorder]
  643. .IP \fI\ b\fP 12
  644. pole polynomial coefficients b[0..iorder]
  645. .PD 1
  646. .PP
  647. Tschebyscheff type 2 bandpass filter.
  648. .PD
  649. .SS \fBgsl_filter_butter_bs\fP (\fIiorder\fP, \fIfreq1\fP, \fIfreq2\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  650. .PD 0
  651. .IP \fI\ iorder\fP 10
  652. filter order (must be even)
  653. .IP \fI\ freq1\fP 10
  654. passband end frequency (0..pi)
  655. .IP \fI\ freq2\fP 10
  656. stopband end frequency (0..pi)
  657. .IP \fI\ epsilon\fP 10
  658. fall off at passband frequency (0..1)
  659. .IP \fI\ a\fP 10
  660. root polynomial coefficients a[0..iorder]
  661. .IP \fI\ b\fP 10
  662. pole polynomial coefficients b[0..iorder]
  663. .PD 1
  664. .PP
  665. Butterworth bandstop filter.
  666. .PD
  667. .SS \fBgsl_filter_tscheb1_bs\fP (\fIiorder\fP, \fIfreq1\fP, \fIfreq2\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  668. .PD 0
  669. .IP \fI\ iorder\fP 10
  670. filter order (must be even)
  671. .IP \fI\ freq1\fP 10
  672. passband end frequency (0..pi)
  673. .IP \fI\ freq2\fP 10
  674. stopband end frequency (0..pi)
  675. .IP \fI\ epsilon\fP 10
  676. fall off at passband frequency (0..1)
  677. .IP \fI\ a\fP 10
  678. root polynomial coefficients a[0..iorder]
  679. .IP \fI\ b\fP 10
  680. pole polynomial coefficients b[0..iorder]
  681. .PD 1
  682. .PP
  683. Tschebyscheff type 1 bandstop filter.
  684. .PD
  685. .SS \fBgsl_filter_tscheb2_bs\fP (\fIiorder\fP, \fIfreq1\fP, \fIfreq2\fP, \fIsteepness\fP, \fIepsilon\fP, \fIa\fP, \fIb\fP);
  686. .PD 0
  687. .IP \fI\ iorder\fP 12
  688. filter order (must be even)
  689. .IP \fI\ freq1\fP 12
  690. passband end frequency (0..pi)
  691. .IP \fI\ freq2\fP 12
  692. stopband end frequency (0..pi)
  693. .IP \fI\ steepness\fP 12
  694. frequency steepness factor
  695. .IP \fI\ epsilon\fP 12
  696. fall off at passband frequency (0..1)
  697. .IP \fI\ a\fP 12
  698. root polynomial coefficients a[0..iorder]
  699. .IP \fI\ b\fP 12
  700. pole polynomial coefficients b[0..iorder]
  701. .PD 1
  702. .PP
  703. Tschebyscheff type 2 bandstop filter.
  704. .PD
  705. .SS \fBgsl_filter_fir_approx\fP (\fIiorder\fP, \fIfreq\fP, \fIvalue\fP);
  706. .PD 0
  707. .IP \fI\ iorder\fP 9
  708. order of the filter (must be oven, >= 2)
  709. .IP \fI\ freq\fP 9
  710. the frequencies of the transfer function
  711. .IP \fI\ value\fP 9
  712. the desired value of the transfer function
  713. .PD 1
  714. .PP
  715. Approximates a given transfer function with an iorder-coefficient FIR filter. It is recommended to provide enough frequency values, so that \fIn_points\fP >= \fIiorder\fP.
  716. .PD
  717. .SS \fBgsl_filter_sine_scan\fP (\fIorder\fP, \fIa\fP, \fIb\fP, \fIfreq\fP, \fIn_values\fP);
  718. .PD 0
  719. .IP \fIguint\ \ \ \ \ \ \ \ \ \ order\fP 25
  720. order of the iir filter
  721. .IP \fIconst\ gdouble*\ a\fP 25
  722. root polynomial coefficients of the filter a[0..order]
  723. .IP \fIconst\ gdouble*\ b\fP 25
  724. pole polynomial coefficients of the filter b[0..order]
  725. .IP \fIgdouble\ \ \ \ \ \ \ \ freq\fP 25
  726. frequency to test
  727. .IP \fIguint\ \ \ \ \ \ \ \ \ \ n_values\fP 25
  728. number of samples
  729. .PD 1
  730. .PP
  731. This function sends a sine signal of the desired frequency through an IIR filter, to test the value of the transfer function at a given point. It uses gsl_iir_filter_eval to do so. Compared to a "mathematical approach" of finding the transfer function, this function makes it possible to see the effects of finite arithmetic during filter evaluation. The first half of the output signal is not considered, since a lot of IIR filters have a transient phase where also overshoot is possible. For n_values, you should specify a reasonable large value. It should be a lot larger than the filter order, and large enough to let the input signal become (close to) 1.0 multiple times.
  732. .PD
  733. .SS \fBgsl_engine_garbage_collect\fP ();
  734. .PD 0
  735. .PD 1
  736. .PP
  737. GSL Engine user thread function. Collects processed jobs and transactions from the engine and frees them, this involves callback invocation of \fBGslFreeFunc()\fP functions, e.g. from \fBgsl_job_access()\fP or \fBgsl_flow_job_access()\fP jobs. This function may only be called from the user thread, as \fBGslFreeFunc()\fP functions are guranteed to be executed in the user thread.
  738. .PD
  739. .SS \fBgsl_signal_exp2\fP ();
  740. .PD 0
  741. .PD 1
  742. .PP
  743. Deprecated in favour of \fBgsl_approx_exp2()\fP.
  744. .PD
  745. .SS \fBgsl_approx_exp2\fP (\fIex\fP);
  746. .PD 0
  747. .IP \fIfloat\ \ ex\fP 11
  748. exponent within [-127..127]
  749. .IP \fIRETURNS:\fP 11
  750. y approximating 2^x
  751. .PD 1
  752. .PP
  753. Fast approximation of 2 raised to the power of x. Multiplicative error stays below 8e-6 and aproaches zero for integer values of x (i.e. x - floor (x) = 0).
  754. .PD
  755. .SS \fBgsl_approx_atan1\fP (\fIx\fP);
  756. .PD 0
  757. .IP \fIregister\ double\ \ x\fP 20
  758. .PD 1
  759. .PP
  760. Fast \fBatan(x)\fP/(PI/2) approximation, with maximum error < 0.01 and \fBgsl_approx_atan1(0)\fP==0, according to the formula: n1 = -0.41156875521951602506487246309908; n2 = -1.0091272542790025586079663559158; d1 = 0.81901156857081841441890603235599; d2 = 1.0091272542790025586079663559158; \fBpositive_atan1(x)\fP = 1 + (n1 * x + n2) / ((1 + d1 * x) * x + d2);
  761. .PD
  762. .SS \fBgsl_approx_atan1_prescale\fP (\fIboost_amount\fP);
  763. .PD 0
  764. .IP \fI\ boost_amount\fP 15
  765. boost amount between [0..1]
  766. .IP \fIRETURNS:\fP 15
  767. prescale factor for \fBgsl_approx_atan1()\fP
  768. .PD 1
  769. .PP
  770. Calculate the prescale factor for \fBgsl_approx_atan1(x*prescale)\fP from a linear boost factor, where 0.5 amounts to prescale=1.0, 1.0 results in maximum boost and 0.0 results in maximum attenuation.
  771. .PD
  772. .SS \fBgsl_approx_qcircle1\fP (\fIx\fP);
  773. .PD 0
  774. .IP \fIregister\ double\ \ x\fP 20
  775. x within [0..1]
  776. .IP \fIRETURNS:\fP 20
  777. y for circle approximation within [0..1]
  778. .PD 1
  779. .PP
  780. Fast approximation of the upper right quadrant of a circle. Errors at x=0 and x=1 are zero, for the rest of the curve, the error wasn't minimized, but distributed to best fit the curverture of a quarter circle. The maximum error is below 0.092.
  781. .PD
  782. .SS \fBgsl_approx_qcircle2\fP (\fIx\fP);
  783. .PD 0
  784. .IP \fIregister\ double\ \ x\fP 20
  785. x within [0..1]
  786. .IP \fIRETURNS:\fP 20
  787. y for circle approximation within [0..1]
  788. .PD 1
  789. .PP
  790. Fast approximation of the upper left quadrant of a circle. Errors at x=0 and x=1 are zero, for the rest of the curve, the error wasn't minimized, but distributed to best fit the curverture of a quarter circle. The maximum error is below 0.092.
  791. .PD
  792. .SS \fBgsl_approx_qcircle3\fP (\fIx\fP);
  793. .PD 0
  794. .IP \fIregister\ double\ \ x\fP 20
  795. x within [0..1]
  796. .IP \fIRETURNS:\fP 20
  797. y for circle approximation within [0..1]
  798. .PD 1
  799. .PP
  800. Fast approximation of the lower left quadrant of a circle. Errors at x=0 and x=1 are zero, for the rest of the curve, the error wasn't minimized, but distributed to best fit the curverture of a quarter circle. The maximum error is below 0.092.
  801. .PD
  802. .SS \fBgsl_approx_qcircle4\fP (\fIx\fP);
  803. .PD 0
  804. .IP \fIregister\ double\ \ x\fP 20
  805. x within [0..1]
  806. .IP \fIRETURNS:\fP 20
  807. y for circle approximation within [0..1]
  808. .PD 1
  809. .PP
  810. Fast approximation of the lower right quadrant of a circle. Errors at x=0 and x=1 are zero, for the rest of the curve, the error wasn't minimized, but distributed to best fit the curverture of a quarter circle. The maximum error is below 0.092.
  811. .PD