I have a bit of experience with building functions in VBA so I get the
basic concept. But the projects I've built in the past did not rely
heavily on processing arrays within functions. What I would really
like is to get my brain around this so I understand exactly what's
taking place and, hopefully, to better apply this technique to my AFL
coding.
>From the AB help files:
I simple function for a second order smoother:
//begin code ************************************
function IIR2( input, f0, f1, f2 )
{
result[ 0 ] = input[ 0 ];
result[ 1 ] = input[ 1 ];
for( i = 2; i < BarCount; i++ )
{
result[ i ] = f0 * input[ i ] +
f1 * result[ i - 1 ] +
f2 * result[ i - 2 ];
}
return result;
}
//end code ***************************************
Do any of you know where I can get a quick and easy tutorial on
processing arrays in functions so I can better understand how this
looping works?
Pete :-)