【AvgDeviationArray】
[code]inputs:PriceValueArray[MaxSize]( numericarray ),
Size( numericsimple ) ;
variables:
var0( 0 ),
var1( 0 ) ;
var0 = 0 ;
var1 = AverageArray( PriceValueArray, Size ) ;
for Value1 = 1 to Size
begin
var0 = var0 + AbsValue( PriceValueArray[Value1] - var1 ) ;
end ;
AvgDeviationArray = var0 / Size ;
[/code]
页:
[1]