harminv-output.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <html lang="en">
  2. <head>
  3. <title>harminv output - avram - a virtual machine code interpreter</title>
  4. <meta http-equiv="Content-Type" content="text/html">
  5. <meta name="description" content="avram - a virtual machine code interpreter">
  6. <meta name="generator" content="makeinfo 4.13">
  7. <link title="Top" rel="start" href="index.html#Top">
  8. <link rel="up" href="harminv.html#harminv" title="harminv">
  9. <link rel="prev" href="harminv-input-parameters.html#harminv-input-parameters" title="harminv input parameters">
  10. <link rel="next" href="harminv-exceptions.html#harminv-exceptions" title="harminv exceptions">
  11. <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
  12. <meta http-equiv="Content-Style-Type" content="text/css">
  13. <style type="text/css"><!--
  14. pre.display { font-family:inherit }
  15. pre.format { font-family:inherit }
  16. pre.smalldisplay { font-family:inherit; font-size:smaller }
  17. pre.smallformat { font-family:inherit; font-size:smaller }
  18. pre.smallexample { font-size:smaller }
  19. pre.smalllisp { font-size:smaller }
  20. span.sc { font-variant:small-caps }
  21. span.roman { font-family:serif; font-weight:normal; }
  22. span.sansserif { font-family:sans-serif; font-weight:normal; }
  23. --></style>
  24. </head>
  25. <body>
  26. <div class="node">
  27. <a name="harminv-output"></a>
  28. <p>
  29. Next:&nbsp;<a rel="next" accesskey="n" href="harminv-exceptions.html#harminv-exceptions">harminv exceptions</a>,
  30. Previous:&nbsp;<a rel="previous" accesskey="p" href="harminv-input-parameters.html#harminv-input-parameters">harminv input parameters</a>,
  31. Up:&nbsp;<a rel="up" accesskey="u" href="harminv.html#harminv">harminv</a>
  32. <hr>
  33. </div>
  34. <h4 class="subsection">D.8.2 <code>harminv</code> output</h4>
  35. <p>The result returned by a call to
  36. <pre class="example"> library('harminv','hsolve')
  37. </pre>
  38. <p class="noindent">with valid input (<a href="harminv-input-parameters.html#harminv-input-parameters">harminv input parameters</a>) is a list of similar tuples of the form
  39. <pre class="example"> &lt;(amplitude,frequency,decay,quality,error)...&gt;
  40. </pre>
  41. <p class="noindent">with all members being real valued except for the amplitudes, which are
  42. complex. Each tuple describes a function of the form
  43. <pre class="example"> f(t) = A * sin (frequency * t + P) * exp (-decay * t)
  44. </pre>
  45. <p class="noindent">such that the summation of these functions approximates the original
  46. given signal (<a href="harminv-input-parameters.html#harminv-input-parameters">harminv input parameters</a>). The real amplitude
  47. <code>A</code> and phase <code>P</code> are given by the modulus and argument of
  48. the complex amplitude returned in the result,
  49. <pre class="example"> A = library('complex','cabs') amplitude
  50. P = library('complex','carg') amplitude
  51. </pre>
  52. <p class="noindent">in terms of the complex library functions (<a href="complex.html#complex">complex</a>).
  53. The error values are measures of the goodness of fit, and the quality
  54. factors are defined as
  55. <pre class="example"> quality = (pi * |frequency| / decay)
  56. </pre>
  57. <p class="noindent">It may be useful in some applications to ignore components with
  58. quality factors outside of a certain range.
  59. </body></html>