【DevSqrdArray】
[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 + Square( PriceValueArray[Value1] - var1 ) ;
end ;
DevSqrdArray = var0 ;
[/code]
页:
[1]