Debian Codegraph @

opcodes/lincos.xml

raw symbols SCIP
1 <!--Change refentry id and indexterm id-->
2 <refentry id="lincos">
3 <indexterm id="IndexLincos"><primary>lincos</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>lincos</refentrytitle>
8 </refmeta>
9
10 <refnamediv>
11 <refname>lincos</refname>
12 <refpurpose>
13 Linear to cosine 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 a cosine (easy-in/easy-out) range of values.
22 At present it supports only scalars, at i- and k-time (no arrays)
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>lincos</command> kx, ky0, ky1 [, kx0, kx1 ]</synopsis>
30 <synopsis>iy <command>lincos</command> ix, iy0, iy1 [, ix0, ix1 ]</synopsis>
31 </refsect1>
32
33 <refsect1>
34
35 <title>Performance</title>
36 <!-- First list all input and output performance parameters-->
37 <para>
38 <emphasis role="strong">kx</emphasis> -- Input signal
39 </para>
40
41 <para>
42 <emphasis role="strong">ky0</emphasis> -- Lower limit of output range
43 </para>
44
45 <para>
46 <emphasis role="strong">ky1</emphasis> -- Higher limit of output range
47 </para>
48
49 <para>
50 <emphasis role="strong">kx0</emphasis> -- Lower limit of input range (default = 0)
51 </para>
52
53 <para>
54 <emphasis role="strong">kx1</emphasis> -- Higher limit of input range (default = 1)
55 </para>
56
57
58
59 <para>
60 <programlisting>
61 dx = ((x-x0) / (x1-x0)) * PI + PI
62 y = y0 + ((y1 - y0) * (1 + cos(dx)) / 2.0);
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 lincos opcode. It uses the file <ulink url="examples/lincos.csd"><citetitle>lincos.csd</citetitle></ulink>.
74 <example>
75 <title>Example of the lincos opcode.</title>
76 <xi:include href="examples-xml/lincos.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; 2018</para>
90 <para>New plugin in version 6.12</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>