title: Concise implementation of DCT, DFT in C#?
body: <p>I have been looking at various implementations of <a href="http://en.wikipedia.org/wiki/Discrete_cosine_transform" rel="nofollow">Discrete Cosine Transforms</a> and <a href="http://en.wikipedia.org/wiki/Discrete_Fourier_transform" rel="nofollow">Discrete Fourier Transforms</a> implemented in C#, yet none is as concise as I would like. </p>
  
  <ul>
  <li><p>A bonus point would be, code derived from a larger <strong>open source</strong> project (i.e. <em>tried and tested</em>).</p></li>
  <li><p>The answer with the <em>best pointers</em> will be the <em>accepted answer</em>.</p></li>
  </ul>
  
  <p><strong>Found</strong> so far</p>
  
  <ul>
  <li><a href="http://www.codeproject.com/Articles/43782/DCT-Implementation-in-C-DCT-of-Image" rel="nofollow">DCT Implementation in C#</a></li>
  <li><a href="http://www.az3749.narod.ru/dct_cs.htm" rel="nofollow">DCT &amp; IDCT</a> (copyrighted, 'untested', slow)</li>
  <li><a href="http://code.google.com/p/aforge/" rel="nofollow">Aforge</a> (well optimized)</li>
  </ul>
  
  <p><strong>PS:</strong> In principal I am looking for 1D-implementations, but '<em>vectorizing</em>' the input-data is trivial, so classical 2D implementations are just as welcome. </p>