Hello
One thing that sticks out is the way you are returning Rxy from the correlate function. The way you have it right now,the CniReal64Vector is making a copy of correl, and the actual value of Rxy is returned in a variable that exist temporarily on the stack. You should have some like
CNiReal64Vector Rxy(1,0.0);
CNiMath::Correlate(CNiReal64Vector (4,0.0),CNiReal64Vector (4,0.0),Rxy);
Now Rxy is be the vector containg the Correlation data of the input arrays
And I think the documentation is incorrect. The size of the return array is actaully m+n-1. I will file a CAR about this though.
I hope this helps
Let me know if I missed anything
Bilal Durrani
NI
Bilal Durrani
NI