根据BS公式,通过Mente Carlo模拟对欧式期权进行定价的源码。即使不是做期权定价的,该源码也是一个非常好的理解如何做Mente Carlo模拟的实例。-Based on the Black-Scholes formula, codes for pricing the European options through the Mente Carlo simulation. It is a very good example for your understanding of how to do Mente Carlo simulation, even if you do not engage in the option pricing.
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.000956s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.060421s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001051s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001285s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001087s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003070s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000897s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003726s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.014745s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001087s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 312651 [ RunTime:0.014383s ]