【StandardizeArray】
[code]inputs:PriceValueArray[MaxSize]( numericarray ),
Size( numericsimple ),
NumDevs( numericsimple ) ;
variables:
var0( 0 ) ;
var0 = NumDevs * StandardDevArray( PriceValueArray, Size, 2 ) ;
if var0 > 0 then
StandardizeArray = ( PriceValueArray[1] - AverageArray( PriceValueArray, Size ) ) / var0
else
StandardizeArray = 0 ;
[/code]
页:
[1]