diff options
Diffstat (limited to 'help/en_US/scilab_en_US_help/firpmord.html')
-rw-r--r-- | help/en_US/scilab_en_US_help/firpmord.html | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/help/en_US/scilab_en_US_help/firpmord.html b/help/en_US/scilab_en_US_help/firpmord.html new file mode 100644 index 0000000..d1f05c5 --- /dev/null +++ b/help/en_US/scilab_en_US_help/firpmord.html @@ -0,0 +1,108 @@ +<html><head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <title>firpmord</title> + <style type="text/css" media="all"> + @import url("scilab_code.css"); + @import url("xml_code.css"); + @import url("c_code.css"); + @import url("style.css"); + </style> + </head> + <body> + <div class="manualnavbar"> + <table width="100%"><tr> + <td width="30%"> + <span class="previous"><a href="filtord.html"><< filtord</a></span> + + </td> + <td width="40%" class="center"> + <span class="top"><a href="section_be19baaac84b122b8ad501d34462f5bf.html">FOSSEE Signal Processing Toolbox</a></span> + + </td> + <td width="30%" class="next"> + <span class="next"><a href="firtype.html">firtype >></a></span> + + </td> + </tr></table> + <hr /> + </div> + + + + <span class="path"><a href="index.html">FOSSEE Signal Processing Toolbox</a> >> <a href="section_be19baaac84b122b8ad501d34462f5bf.html">FOSSEE Signal Processing Toolbox</a> > firpmord</span> + + <br /><br /> + <div class="refnamediv"><h1 class="refname">firpmord</h1> + <p class="refpurpose">Parks-McClennan optimal FIR filter order estimation</p></div> + + +<div class="refsynopsisdiv"><h3 class="title">Calling Sequence</h3> + <div class="synopsis"><pre></pre></div></div> + +<div class="refsection"><h3 class="title">Parameters</h3> + <dl><dt><span class="term">f:</span> + <dd><p class="para">double - positive - vector</p></dd></dt> + <dt><span class="term">a:</span> + <dd><p class="para">double - positive - vector</p></dd></dt> + <dt><span class="term">dev:</span> + <dd><p class="para">double - positive - vector</p></dd></dt> + <dt><span class="term">n:</span> + <dd><p class="para">int - scalar</p></dd></dt> + <dt><span class="term">fo:</span> + <dd><p class="para">double - positive - vector</p></dd></dt> + <dt><span class="term">ao:</span> + <dd><p class="para">double - positive - vector</p></dd></dt> + <dt><span class="term">w:</span> + <dd><p class="para">double - vector</p></dd></dt></dl></div> + +<div class="refsection"><h3 class="title">Examples</h3> + <div class="programlisting"><table border="0" width="100%"><tr><td width="98%"><pre class="scilabcode"><span class="scilabopenclose">[</span><span class="scilabnumber">1</span><span class="scilabopenclose">]</span> <span class="scilabid">A</span> <span class="scilabid">low</span><span class="scilaboperator">-</span><span class="scilabid">pass</span> <a class="scilabmacro" href="scilab://filter">filter</a> +<span class="scilabid">f</span> <span class="scilaboperator">=</span> <span class="scilabopenclose">[</span><span class="scilabnumber">1500</span> <span class="scilabnumber">2000</span><span class="scilabopenclose">]</span><span class="scilabdefault">;</span> <span class="scilabcomment">// frequency edges for bands</span> +<span class="scilabid">a</span> <span class="scilaboperator">=</span> <span class="scilabopenclose">[</span><span class="scilabnumber">1</span> <span class="scilabnumber">0</span><span class="scilabopenclose">]</span><span class="scilabdefault">;</span> <span class="scilabcomment">// desired amplitude for each band</span> +<span class="scilabid">dev</span> <span class="scilaboperator">=</span> <span class="scilabopenclose">[</span><span class="scilabnumber">0.01</span> <span class="scilabnumber">0.1</span><span class="scilabopenclose">]</span><span class="scilabdefault">;</span> <span class="scilabcomment">// Acceptable deviation for each band</span> +<span class="scilabid">fs</span> <span class="scilaboperator">=</span> <span class="scilabnumber">8000</span><span class="scilabdefault">;</span> <span class="scilabcomment">// Sampling frequency</span> +<span class="scilabopenclose">[</span><span class="scilabid">n</span><span class="scilabdefault">,</span><span class="scilabid">fo</span><span class="scilabdefault">,</span><span class="scilabid">ao</span><span class="scilabdefault">,</span><span class="scilabid">w</span><span class="scilabopenclose">]</span> <span class="scilaboperator">=</span> <span class="scilabid">firpmord</span><span class="scilabopenclose">(</span><span class="scilabid">f</span><span class="scilabdefault">,</span><span class="scilabid">a</span><span class="scilabdefault">,</span><span class="scilabid">dev</span><span class="scilabdefault">,</span><span class="scilabid">fs</span><span class="scilabopenclose">)</span><span class="scilabdefault">;</span> + +<span class="scilabopenclose">[</span><span class="scilabnumber">2</span><span class="scilabopenclose">]</span> <span class="scilabid">A</span> <span class="scilabid">bandstop</span> <a class="scilabmacro" href="scilab://filter">filter</a> +<span class="scilabid">f</span> <span class="scilaboperator">=</span> <span class="scilabopenclose">[</span><span class="scilabnumber">1000</span> <span class="scilabnumber">1800</span> <span class="scilabnumber">2400</span> <span class="scilabnumber">3000</span><span class="scilabopenclose">]</span><span class="scilabdefault">;</span> +<span class="scilabid">a</span> <span class="scilaboperator">=</span> <span class="scilabopenclose">[</span><span class="scilabnumber">1</span> <span class="scilabnumber">0</span> <span class="scilabnumber">0.5</span><span class="scilabopenclose">]</span><span class="scilabdefault">;</span> +<span class="scilabid">dev</span> <span class="scilaboperator">=</span> <span class="scilabopenclose">[</span><span class="scilabnumber">0.01</span> <span class="scilabnumber">0.1</span> <span class="scilabnumber">0.03</span><span class="scilabopenclose">]</span><span class="scilabdefault">;</span> +<span class="scilabid">fs</span> <span class="scilaboperator">=</span> <span class="scilabnumber">8000</span><span class="scilabdefault">;</span> +<span class="scilabopenclose">[</span><span class="scilabid">n</span><span class="scilabdefault">,</span><span class="scilabid">fo</span><span class="scilabdefault">,</span><span class="scilabid">ao</span><span class="scilabdefault">,</span><span class="scilabid">w</span><span class="scilabopenclose">]</span> <span class="scilaboperator">=</span> <span class="scilabid">firpmord</span><span class="scilabopenclose">(</span><span class="scilabid">f</span><span class="scilabdefault">,</span><span class="scilabid">a</span><span class="scilabdefault">,</span><span class="scilabid">dev</span><span class="scilabdefault">,</span><span class="scilabid">fs</span><span class="scilabopenclose">)</span><span class="scilabdefault">;</span> + +<span class="scilabid">References</span> +<span class="scilabopenclose">[</span><span class="scilabnumber">1</span><span class="scilabopenclose">]</span> <span class="scilabid">Rabiner</span><span class="scilabdefault">,</span> <span class="scilabid">Lawrence</span> <span class="scilabid">R</span><span class="scilaboperator">.</span><span class="scilabdefault">,</span> <a class="scilabcommand" href="scilab://and">and</a> <span class="scilabstring">Bernard</span> <span class="scilabstring">Gold.</span> <span class="scilabstring">"Theory</span> <span class="scilabstring">and</span> <span class="scilabstring">application</span> <span class="scilabstring">of</span> +<span class="scilabid">digital</span> <span class="scilabid">signal</span> <span class="scilabid">processing</span><span class="scilaboperator">.</span><span class="scilabstring">"</span><span class="scilabstring"> Englewood Cliffs, NJ, Prentice-Hall, Inc.,</span> +<span class="scilabnumber">1975.</span> <span class="scilabnumber">777</span> <span class="scilabid">p</span><span class="scilaboperator">.</span> <span class="scilabnumber">156</span><span class="scilaboperator">-</span><span class="scilabnumber">7</span> <span class="scilabopenclose">(</span><span class="scilabnumber">1975</span><span class="scilabopenclose">)</span><span class="scilaboperator">.</span> +<span class="scilabopenclose">[</span><span class="scilabnumber">2</span><span class="scilabopenclose">]</span> <span class="scilabid">Rabiner</span><span class="scilabdefault">,</span> <span class="scilabid">Lawrence</span> <span class="scilabid">R</span><span class="scilaboperator">.</span><span class="scilabdefault">,</span> <a class="scilabcommand" href="scilab://and">and</a> <span class="scilabstring">Otto</span> <span class="scilabstring">Herrmann.</span> <span class="scilabstring">"The</span> <span class="scilabstring">predictability</span> <span class="scilabstring">of</span> <span class="scilabstring">certain</span> +<span class="scilabid">optimum</span> <span class="scilabid">finite</span><span class="scilaboperator">-</span><span class="scilabid">impulse</span><span class="scilaboperator">-</span><span class="scilabid">response</span> <span class="scilabid">digital</span> <span class="scilabid">filters</span><span class="scilaboperator">.</span><span class="scilabstring">"</span><span class="scilabstring"> Circuit Theory,</span> +<span class="scilabid">IEEE</span> <span class="scilabid">Transactions</span> <span class="scilabid">on</span> <span class="scilabnumber">20.4</span> <span class="scilabopenclose">(</span><span class="scilabnumber">1973</span><span class="scilabopenclose">)</span><span class="scilabspecial">:</span> <span class="scilabnumber">401</span><span class="scilaboperator">-</span><span class="scilabnumber">408.</span></pre></td><td valign="top"><a href="scilab://scilab.execexample/"><img src="ScilabExecute.png" border="0"/></a></td><td valign="top"><a href="scilab://scilab.editexample/"><img src="ScilabEdit.png" border="0"/></a></td><td></td></tr></table></div></div> + +<div class="refsection"><h3 class="title">Authors</h3> + <ul class="itemizedlist"><li class="member">Ayush Baid</li></ul></div> + +<div class="refsection"><h3 class="title">See also</h3> + <ul class="itemizedlist"></ul></div> + <br /> + + <div class="manualnavbar"> + <table width="100%"> + <tr><td colspan="3" class="next"><a href="http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20software&component=Documentation%20pages" class="ulink">Report an issue</a></td></tr> +<tr> + <td width="30%"> + <span class="previous"><a href="filtord.html"><< filtord</a></span> + + </td> + <td width="40%" class="center"> + <span class="top"><a href="section_be19baaac84b122b8ad501d34462f5bf.html">FOSSEE Signal Processing Toolbox</a></span> + + </td> + <td width="30%" class="next"> + <span class="next"><a href="firtype.html">firtype >></a></span> + + </td> + </tr></table> + <hr /> + </div> + </body> +</html> |