Debian Codegraph @

opcodes/bpfcos.xml

raw symbols SCIP
1 <!--Change refentry id and indexterm id-->
2 <refentry id="bpfcos">
3 <indexterm id="IndexBpfcos"><primary>bpfcos</primary></indexterm>
4 <!--Make sure the category below is a valid one! See categories.py-->
5 <refentryinfo><title>Signal Generators:Linear and Exponential Generators</title></refentryinfo>
6 <refmeta>
7 <refentrytitle>bpfcos</refentrytitle>
8 </refmeta>
9
10 <refnamediv>
11 <refname>bpfcos</refname>
12 <refpurpose>
13 Break point function with cosine (easy-in/easy-out) interpolation
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>Plugin opcode in emugens.</para>
20 <para>
21 Break-point function with cosine interpolation.
22 Given an x value and a series of pairs (x, y), it returns
23 the corresponding y value in the half cosine curve defined
24 by the pairs.
25 It works both at i- and k- time
26 </para>
27 </refsect1>
28
29 <refsect1>
30 <title>Syntax</title>
31 <!-- Please keep this below ~70 characters by using backslashes to avoid overflow in the pdf version-->
32 <synopsis>ky <command>bpfcos</command> kx, kx1, ky1, kx2, ..., kxn, kyn</synopsis>
33 <synopsis>kys[] <command>bpfcos</command> kxs[], kx1, ky1, kx2, ..., kxn, kyn</synopsis>
34 <synopsis>ky <command>bpfcos</command> kx, kxs[], kys[]</synopsis>
35 <synopsis>ky <command>bpfcos</command> kx, ixs[], iys[]</synopsis>
36 <synopsis>ky, kz <command>bpfcos</command> kx, kxs[], kys[], kzs[] </synopsis>
37 <synopsis>ky, kz <command>bpfcos</command> kx, ixs[], iys[], izs[] </synopsis>
38 </refsect1>
39
40 <refsect1>
41
42 <title>Performance</title>
43 <para>
44 <emphasis role="strong">kx</emphasis> -- Input value. Can also be an array
45 </para>
46 <para>
47 <emphasis role="strong">kxn, kyn</emphasis> -- Defines a breakpoint. Can be
48 changed at krate, but all <emphasis>kx</emphasis>s must be sorted
49 </para>
50
51 <para>
52 The points (kx1, ky1), (kx2, ky2), etc, define a cosine
53 interpolated function. This function is evaluated at point
54 <emphasis>kx</emphasis>. This function extends to both -inf
55 and +inf, so if kx &lt; kx1 then ky = ky1 and the same holds true
56 the other end.
57 </para>
58 <refsect2>
59 <title>Array Variants</title>
60 <para>
61 <synopsis>kys[] <command>bpfcos</command> kxs[], kx1, ky1, kx2, ..., kxn, kyn</synopsis>
62 </para>
63 <para>
64 For each x in kxs, calculate the y value defined by the points (kx1, ky1), ... (kxn, kyn)
65 </para>
66 <para>
67 <synopsis>ky <command>bpfcos</command> kx, ixs[], iys[]</synopsis>
68 </para>
69 <para>
70 In this variants the points are defined through arrays. ixs contains all the x values,
71 iys contains all the y values
72 </para>
73 <para>
74 <synopsis>ky, kz <command>bpfcos</command> kx, kxs[], kys[], kzs[] </synopsis>
75 </para>
76 <para>
77 The same as the variant above, but for multidimensional points. Given two curves sharing
78 the same x points, calculate the value at x for both dimensions simultaneously.
79 (see example)
80 </para>
81 </refsect2>
82
83 <note>
84 <para>
85 x values need to be sorted. Both x and y values can change but
86 x values must stay sorted.
87 </para>
88 </note>
89 </refsect1>
90 <refsect1>
91 <!--To add examples, create the csd file in the examples directory, then run:-->
92 <!--python csd2docbook.py -f newopcodename.csd-->
93 <!--to generate the xml highlighted version used below-->
94 <title>Examples</title>
95 <para>
96 Here is an example of the bpfcos opcode. It uses the file <ulink url="examples/bpfcos.csd"><citetitle>bpfcos.csd</citetitle></ulink>.
97 <example>
98 <title>Example of the bpfcos opcode.</title>
99 <xi:include href="examples-xml/bpfcos.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
100 </example>
101 </para>
102 </refsect1>
103
104 <refsect1>
105 <title>See also</title>
106 <para><link linkend="SiggenLineexp"><citetitle>Linear and Exponential Generators</citetitle></link></para>
107 </refsect1>
108
109 <refsect1>
110 <!-- And put your name and other relevant information here-->
111 <title>Credits</title>
112 <para>By: &nameeduardo; 2018</para>
113 <para>New plugin in version 6.12</para>
114 <para>Array versions in version 6.14</para>
115 </refsect1>
116
117 <!--Now remember to add a link from the appropriate category in the Opcode Overview.-->
118 <!--Add the entity to manual.xml-->
119 <!--Add the entity reference in the appropriate place in opcodes/top.xml-->
120 <!--And you're set! Maybe delete the comments as well...-->
121
122 </refentry>