Reply by Fred Marshall August 29, 20112011-08-29
On 8/28/2011 1:59 PM, Vladimir Vassilevsky wrote:
> > > tinkerz wrote: > >> C# code from the the internet, I assumed it works > > :)))))))) > > If a code is from the internet, I assume it is a shit.
take a look at FFTW
Reply by Rune Allnor August 29, 20112011-08-29
On Aug 29, 5:29&#4294967295;pm, "tinkerz" <nwoodhamuk@n_o_s_p_a_m.googlemail.com>
wrote:
> Where else can I go to get help on this? > > Are there digital control consunlants that can help by sending valid code > for a fee?
There is a crude fft code in the book 'numerical recipies'. Rune
Reply by tinkerz August 29, 20112011-08-29
Where else can I go to get help on this?

Are there digital control consunlants that can help by sending valid code
for a fee?
Reply by Vladimir Vassilevsky August 28, 20112011-08-28

tinkerz wrote:

> C# code from the the internet, I assumed it works
:)))))))) If a code is from the internet, I assume it is a shit.
Reply by tinkerz August 27, 20112011-08-27
I dont have the knowledge to understand the result, I just have the concept
Reply by tinkerz August 27, 20112011-08-27
Ok will try and look at the results
Reply by Eric Jacobsen August 27, 20112011-08-27
On Sat, 27 Aug 2011 10:36:55 -0500, "tinkerz"
<nwoodhamuk@n_o_s_p_a_m.googlemail.com> wrote:

>C# code from the the internet, I assumed it works > >My code for Power spectral density is from wiki > >FLowpower+=(Math.Pow(data[index],2)*index)+(Math.Pow(data[index+1],2)*index); > >This may be the problem, I would like power at each frequency and the total >power. > >to compare the power of the lower half to the upper half
You can test the FFT and your integration of it by giving it signals with known spectra and comparing the results. e.g., sine waves at various frequencies, combinations thereof, etc. You should be able to isolate whether the FFT is the problem or something else. Eric Jacobsen http://www.ericjacobsen.org http://www.dsprelated.com/blogs-1//Eric_Jacobsen.php
Reply by tinkerz August 27, 20112011-08-27
C# code from the the internet, I assumed it works

My code for Power spectral density is from wiki

FLowpower+=(Math.Pow(data[index],2)*index)+(Math.Pow(data[index+1],2)*index);	

This may be the problem, I would like power at each frequency and the total
power.

to compare the power of the lower half to the upper half


Reply by Eric Jacobsen August 27, 20112011-08-27
On Sat, 27 Aug 2011 05:45:57 -0500, "tinkerz"
<nwoodhamuk@n_o_s_p_a_m.googlemail.com> wrote:

>Still trying find someone who can consult me on this, ant suggestions of >where to go > >thanks
How did you test your FFT to assure that it is working correctly? What happens when you provide a sine wave at the input at various frequencies? Eric Jacobsen http://www.ericjacobsen.org http://www.dsprelated.com/blogs-1//Eric_Jacobsen.php
Reply by tinkerz August 27, 20112011-08-27
Still trying find someone who can consult me on this, ant suggestions of
where to go 

thanks