Debian Codegraph @

scoregens/gen08.xml

raw symbols SCIP
1
2 <refentry id="GEN08">
3 <indexterm id="IndexGEN08"><primary>GEN08</primary></indexterm>
4 <refmeta>
5 <refentrytitle>GEN08</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>GEN08</refname>
10 <refpurpose>
11 Generate a piecewise cubic spline curve.
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>
18 This subroutine will generate a piecewise cubic spline curve, the smoothest possible through all specified points.
19 </para>
20 </refsect1>
21
22 <refsect1>
23 <title>Syntax</title>
24 <synopsis><command>f</command> # time size 8 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 of 2 or power-of-2 plus 1 (see <link linkend="f"><citetitle>f statement</citetitle></link>).
31 </para>
32
33 <para>
34 <emphasis>a, b, c,</emphasis> etc. -- ordinate values of the function.
35 </para>
36
37 <para>
38 <emphasis>n1, n2, n3 ... </emphasis> -- length of each segment measured in stored values. May not be zero, but may be fractional. A particular segment may or may not actually store any values; stored values will be generated at integral points from the beginning of the function. The sum <emphasis>n1</emphasis> + <emphasis>n2</emphasis> + ... will normally equal <emphasis>size</emphasis> for fully specified functions.
39 </para>
40
41 <note>
42 <title>Note</title>
43 <para>
44 <itemizedlist>
45 <listitem>
46 <para>
47 <emphasis>GEN08</emphasis> constructs a stored table from segments of cubic polynomial functions. Each segment runs between two specified points but depends as well on their neighbors on each side. Neighboring segments will agree in both value and slope at their common point. (The common slope is that of a parabola through that point and its two neighbors). The slope at the two ends of the function is constrained to be zero (flat).
48 </para>
49 </listitem>
50
51 <listitem>
52 <para>
53 <emphasis>Hint:</emphasis> to make a discontinuity in slope or value in the function as stored, arrange a series of points in the interval between two stored values; likewise for a non-zero boundary slope.
54 </para>
55 </listitem>
56 </itemizedlist>
57 </para>
58 </note>
59 </refsect1>
60
61 <refsect1>
62 <title>Examples</title>
63 <para>
64 Here is an example of the GEN08 routine. It uses the files <ulink url="examples/gen08.csd"><citetitle>gen08.csd</citetitle></ulink>.
65 <example>
66 <title>An example of the GEN08 routine.</title>
67 <xi:include href="examples-xml/gen08.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
68 </example>
69
70 <textobject>
71 <phrase>These are the diagrams of the waveforms of the GEN08 routines, as used in the example:</phrase>
72 </textobject>
73
74 <mediaobject>
75 <imageobject>
76 <imagedata fileref="images/gen08_1.png" format="PNG"/>
77 </imageobject>
78
79 <textobject>
80 <phrase>f 2 0 65 8 0 16 1 16 1 16 0 17 0 - a curve with a smooth hump in the middle, going briefly negative outside the hump then flat at its ends</phrase>
81 </textobject>
82
83 <caption>
84 <para>f 2 0 65 8 0 16 1 16 1 16 0 17 0 - a curve with a smooth hump in the middle, going briefly negative outside the hump then flat at its ends</para>
85 </caption>
86 </mediaobject>
87
88 <mediaobject>
89 <imageobject>
90 <imagedata fileref="images/gen08_2.png" format="PNG"/>
91 </imageobject>
92
93 <textobject>
94 <phrase>f 3 0 65 8 -1 32 1 2 0 14 0 17 0 - from a negative value,a curve with a smooth hump, going negative creating a small hump then flat at its ends</phrase>
95 </textobject>
96
97 <caption>
98 <para>f 3 0 65 8 -1 32 1 2 0 14 0 17 0 - from a negative value,a curve with a smooth hump, going negative creating a small hump then flat at its ends</para>
99 </caption>
100 </mediaobject>
101
102 </para>
103 </refsect1>
104
105
106 <refsect1>
107 <title>See Also</title>
108 <para>
109 <link linkend="GEN05"><citetitle>GEN05</citetitle></link>,
110 <link linkend="GEN06"><citetitle>GEN06</citetitle></link>, and
111 <link linkend="GEN07"><citetitle>GEN07</citetitle></link>
112 </para>
113 </refsect1>
114 </refentry>