Quote:
Originally Posted by klaus
The imaginary samples set to 0 are necessary.
|
Ahh, thanks Klaus - no wonder I didn't understand what was going on!
I've added a few methods to the library that might speed things up slightly, especially on a device
CopyArray(array As Double) As Double
fast .NET method for cloning of an array
ToAmplitude(real As Double(), imag As Double(), scale As Double) as Double()
where scale determines the scaling of the output values which with a scale value of 1 are the input values
ToPhase(real As Double(), imag As Double()) as Double()
and
ToReal(amplitude As Double(), phase As Double(), scale As Double) as Double()
ToImaginary(amplitude As Double(), phase As Double(), scale As Double) as Double()
where scale is the same value as used for ToAmplitude.
Any comments?