Debian Codegraph @

opcodes/linlin.xml

raw symbols SCIP
1 <!--Change refentry id and indexterm id-->
2 <refentry id="linlin">
3 <indexterm id="IndexLinlin"><primary>linlin</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>linlin</refentrytitle>
8 </refmeta>
9
10 <refnamediv>
11 <refname>linlin</refname>
12 <refpurpose>
13 Linear to linear interpolation
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>Plugin opcode in emugens.</para>
20 <para>
21 Maps a linear range of values to another linear range of values.
22 Supports both scalars and arrays, at i- and k-time
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <!-- Please keep this below ~70 characters by using backslashes to avoid overflow in the pdf version-->
29 <synopsis>ky <command>linlin</command> kx, ky0, ky1 [, kx0, kx1 ]</synopsis>
30 <synopsis>iy <command>linlin</command> ix, iy0, iy1 [, ix0, ix1 ]</synopsis>
31 <synopsis>kys[] <command>linlin</command> kxs[], ky0, ky1 [, kx0, kx1 ]</synopsis>
32 <synopsis>iys[] <command>linlin</command> ixs[], ky0, ky1, [ kx0, kx1 ]</synopsis>
33 <synopsis>kC[] <command>linlin</command> kx, kA[], kB[] [, kx0, kx1 ]</synopsis>
34 </refsect1>
35
36 <refsect1>
37
38 <title>Performance</title>
39 <!-- First list all input and output performance parameters-->
40 <para>
41 <emphasis role="strong">kx</emphasis> -- Input signal
42 </para>
43
44 <para>
45 <emphasis role="strong">kx0</emphasis> -- Lower limit of input range. <emphasis>Defaults to 0</emphasis>
46 </para>
47
48 <para>
49 <emphasis role="strong">kx1</emphasis> -- Higher limit of input range. <emphasis>Defaults to 1</emphasis>
50 </para>
51
52 <para>
53 <emphasis role="strong">ky0</emphasis> -- Lower limit of output range
54 </para>
55
56 <para>
57 <emphasis role="strong">ky1</emphasis> -- Higher limit of output range
58 </para>
59
60 <para>
61 <programlisting>
62 y = (x - x0) / (x1 - x0) * (y1 - y0) + y0
63 </programlisting>
64 </para>
65
66 </refsect1>
67 <refsect1>
68 <!--To add examples, create the csd file in the examples directory, then run:-->
69 <!--python csd2docbook.py -f newopcodename.csd-->
70 <!--to generate the xml highlighted version used below-->
71 <title>Examples</title>
72 <para>
73 Here is an example of the linlin opcode. It uses the file <ulink url="examples/linlin.csd"><citetitle>linlin.csd</citetitle></ulink>.
74 <example>
75 <title>Example of the linlin opcode.</title>
76 <xi:include href="examples-xml/linlin.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
77 </example>
78 </para>
79 </refsect1>
80
81 <refsect1>
82 <title>See also</title>
83 <para><link linkend="SiggenLineexp"><citetitle>Linear and Exponential Generators</citetitle></link></para>
84 </refsect1>
85
86 <refsect1>
87 <!-- And put your name and other relevant information here-->
88 <title>Credits</title>
89 <para>By: &nameeduardo; 2017</para>
90 <para>New plugin in version 6.11</para>
91 </refsect1>
92
93 <!--Now remember to add a link from the appropriate category in the Opcode Overview.-->
94 <!--Add the entity to manual.xml-->
95 <!--Add the entity reference in the appropriate place in opcodes/top.xml-->
96 <!--And you're set! Maybe delete the comments as well...-->
97
98 </refentry>