【NormSCDensity】
[code]inputs:PriceValue( numericsimple ) ;
variables:
var0( 0 ),
var1( 0 ),
var2( 0 ),
var3( 2.506628275 ),
var4( .2316419 ),
var5( .319381530 ),
var6( .356563782 ),
var7( 1.781477937 ),
var8( 1.821255978 ),
var9( 1.330274429 ) ;
var0 = 1 / ( 1 + var4 * AbsValue( PriceValue ) ) ;
var1 = ExpValue( -Square( PriceValue ) * .5 ) / var3 ;
var2 = 1 - var1 * ( ( ( ( ( var9 * var0 - var8 ) * var0 + var7 ) * var0 - var6 ) * var0 + var5 )
* var0 ) ;
if PriceValue < 0 then
var2 = 1 - var2 ;
NormSCDensity = var2 ;
[/code]
页:
[1]