summaryrefslogtreecommitdiff
path: root/help/en_US/rc2poly.xml
blob: a2f299314da6e53e1079fd53f4873a29ab18795c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0" encoding="UTF-8"?>

<!--
 *
 * This help file was generated from rc2poly.sci using help_from_sci().
 *kr: Refelection coefficient.
// R0: the zero lag autocorrelation, R0.
// a: Return the prediction polynomial.
// efinal: Return the final prediction error.

 -->

<refentry version="5.0-subset Scilab" xml:id="rc2poly" xml:lang="en"
          xmlns="http://docbook.org/ns/docbook"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:svg="http://www.w3.org/2000/svg"
          xmlns:ns3="http://www.w3.org/1999/xhtml"
          xmlns:mml="http://www.w3.org/1998/Math/MathML"
          xmlns:scilab="http://www.scilab.org"
          xmlns:db="http://docbook.org/ns/docbook">

  <refnamediv>
    <refname>rc2poly</refname>
    <refpurpose>Convert reflection coefficients to prediction filter polynomial</refpurpose>
  </refnamediv>


<refsynopsisdiv>
   <title>Calling Sequence</title>
   <synopsis>
   a = rc2poly(kr)
   [a, efinal] = rc2poly(kr,R0)
   </synopsis>
</refsynopsisdiv>

<refsection>
   <title>Parameters</title>
   <variablelist>
   <varlistentry><term>kr:</term>
      <listitem><para>Reflection coefficients.</para></listitem></varlistentry>
   <varlistentry><term>R0:</term>
      <listitem><para>The zero-lag autocorrelation.</para></listitem></varlistentry>
   <varlistentry><term>a:</term>
      <listitem><para>Prediciton polynomial.</para></listitem></varlistentry>

<varlistentry><term>efinal:</term>
      <listitem><para>the final prediction error.</para></listitem></varlistentry>
</variablelist>
</refsection>

<refsection>
<title>Description</title>
<para>a = rc2poly(k) converts the reflection coefficients k corresponding to the lattice structure to the prediction filter polynomial a, with a(1) = 1.</para>
<para>The output a is row vector of length length(k) + 1.</para>

<para>[a,efinal] = rc2poly(k,r0) returns the final prediction error efinal based on the zero-lag autocorrelation, r0.</para>
</refsection>


<refsection>
<title>Example</title>
 <programlisting role="example"><![CDATA[
k = [0.3090 0.9800 0.0031 0.0082 -0.0082];
a = rc2poly(k)
//EXPECTED OUTPUT:a= 1.    0.6148162    0.9898814    0.0000243    0.0031580     - 0.0082
   ]]></programlisting>


</refsection>



</refentry>