Debian Codegraph @

scoregens/gen06.xml

raw symbols SCIP
1
2 <refentry id="GEN06">
3 <indexterm id="IndexGEN06"><primary>GEN06</primary></indexterm>
4 <refmeta>
5 <refentrytitle>GEN06</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>GEN06</refname>
10 <refpurpose>
11 Generates a function comprised of segments of cubic polynomials.
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>
18 This subroutine will generate a function comprised of segments of cubic polynomials, spanning specified points just three at a time.
19 </para>
20 </refsect1>
21
22 <refsect1>
23 <title>Syntax</title>
24 <synopsis><command>f</command> # time size 6 a n1 b n2 c n3 d ...</synopsis>
25 </refsect1>
26
27 <refsect1>
28 <title>Initialization</title>
29 <para>
30 <emphasis>size</emphasis> -- number of points in the table. Must be a power off or power-of-2 plus 1 (see <link linkend="f"><citetitle>f statement</citetitle></link>).
31 </para>
32
33 <para>
34 <emphasis>a, c, e, ...</emphasis> -- local maxima or minima of successive segments, depending on the relation of these points to adjacent inflexions. May be either positive or negative.
35 </para>
36
37 <para>
38 <emphasis>b, d, f, ...</emphasis> -- ordinate values of points of inflexion at the ends of successive curved segments. May be positive or negative.
39 </para>
40
41 <para>
42 <emphasis>n1, n2, n3 ...</emphasis> -- number of stored values between specified points. Cannot be negative, but a zero is meaningful for specifying discontinuities. The sum <emphasis>n1</emphasis> + <emphasis>n2</emphasis> + ... will normally equal size for fully specified functions. (for details, see <link linkend="GEN05"><citetitle>GEN05</citetitle></link>).
43 </para>
44
45 <note>
46 <title>Note</title>
47 <para>
48 <emphasis>GEN06</emphasis> constructs a stored function from segments of cubic polynomial functions. Segments link ordinate values in groups of 3: point of inflexion, maximum/minimum, point of inflexion. The first complete segment encompasses <emphasis>b</emphasis>, <emphasis>c</emphasis>, <emphasis>d</emphasis> and has length <emphasis>n2</emphasis> + <emphasis>n3</emphasis>, the next encompasses <emphasis>d</emphasis>, <emphasis>e</emphasis>, <emphasis>f</emphasis> and has length <emphasis>n4</emphasis> + <emphasis>n5</emphasis>, etc. The first segment (<emphasis>a</emphasis>, <emphasis>b</emphasis> with length <emphasis>n1</emphasis>) is partial with only one inflexion; the last segment may be partial too. Although the inflexion points <emphasis>b</emphasis>, <emphasis>d</emphasis>, <emphasis>f</emphasis> ... each figure in two segments (to the left and right), the slope of the two segments remains independent at that common point (i.e. the 1st derivative will likely be discontinuous). When <emphasis>a</emphasis>, <emphasis>c</emphasis>, <emphasis>e</emphasis>... are alternately maximum and minimum, the inflexion joins will be relatively smooth; for successive maxima or successive minima the inflexions will be comb-like.
49 </para>
50 </note>
51 </refsect1>
52
53 <refsect1>
54 <title>Examples</title>
55 <para>
56 Here is an example of the GEN06 routine. It uses the files <ulink url="examples/gen06.csd"><citetitle>gen06.csd</citetitle></ulink>.
57 <example>
58 <title>An example of the GEN06 routine.</title>
59 <xi:include href="examples-xml/gen06.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
60 </example>
61
62 <textobject>
63 <phrase>These are the diagrams of the waveforms of the GEN06 routines, as used in the example:</phrase>
64 </textobject>
65
66 <mediaobject>
67 <imageobject>
68 <imagedata fileref="images/gen06_1.png" format="PNG"/>
69 </imageobject>
70
71 <textobject>
72 <phrase>f 2 0 513 6 1 128 -1 128 1 64 -.5 64 .5 16 -.5 8 1 16 -.5 8 1 16 -.5 84 1 16 -.5 8 .1 16 -.1 17 0 - a not-so-smooth curve</phrase>
73 </textobject>
74
75 <caption>
76 <para>f 2 0 513 6 1 128 -1 128 1 64 -.5 64 .5 16 -.5 8 1 16 -.5 8 1 16 -.5 84 1 16 -.5 8 .1 16 -.1 17 0 - a not-so-smooth curve</para>
77 </caption>
78 </mediaobject>
79
80 <mediaobject>
81 <imageobject>
82 <imagedata fileref="images/gen06_2.png" format="PNG"/>
83 </imageobject>
84
85 <textobject>
86 <phrase>f 3 0 513 6 0 128 0.5 128 1 128 0 129 -1 - a curve running 0 to 1 to -1, with a minimum, maximum and minimum at these values respectively. Inflexions are at .5 and 0 and are relatively smooth</phrase>
87 </textobject>
88
89 <caption>
90 <para>f 3 0 513 6 0 128 0.5 128 1 128 0 129 -1 - a curve running 0 to 1 to -1, with a minimum, maximum and minimum at these values respectively. Inflexions are at .5 and 0 and are relatively smooth</para>
91 </caption>
92 </mediaobject>
93
94 </para>
95 </refsect1>
96
97
98 <refsect1>
99 <title>See Also</title>
100 <para>
101 <link linkend="GEN05"><citetitle>GEN05</citetitle></link>,
102 <link linkend="GEN07"><citetitle>GEN07</citetitle></link>, and
103 <link linkend="GEN08"><citetitle>GEN08</citetitle></link>
104 </para>
105 </refsect1>
106 </refentry>