View Single Post
  #28 (permalink)  
Old 03-15-2010, 05:02 PM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by klaus View Post
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?
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote