Hi folks,
One stage in a piece of data analysis I'm doing involves ranking an array of (double-precision) values. The array is anywhere between 2 and 2500 items long.
So far I am implementing this by writing the values to a worksheet and using the WorkbookFunction.Rank function to return the rank of all the values. Due to repeated use of the function it slows down my code fairly significantly.
So, three questions:-
a) Does anyone know if using single- vs. double-precision values will speed up the function? I'll test this myself anyway...
b) Does anyone have a simple code example to return the rank of an array of values?
c) [Most importantly] is there any evidence to say that a block of code with no worksheet interaction will work faster than the WorkbookFunction.Rank function?
Thanking you all in advance!
Mark
One stage in a piece of data analysis I'm doing involves ranking an array of (double-precision) values. The array is anywhere between 2 and 2500 items long.
So far I am implementing this by writing the values to a worksheet and using the WorkbookFunction.Rank function to return the rank of all the values. Due to repeated use of the function it slows down my code fairly significantly.
So, three questions:-
a) Does anyone know if using single- vs. double-precision values will speed up the function? I'll test this myself anyway...
b) Does anyone have a simple code example to return the rank of an array of values?
c) [Most importantly] is there any evidence to say that a block of code with no worksheet interaction will work faster than the WorkbookFunction.Rank function?
Thanking you all in advance!
Mark