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