z****p 发帖数: 18 | 1 3. The is a standard Bayes rule problem:
event B: bad guy, P(B) = 1/1e4
event -B: good guy P(-B) = 1-1/1e4
event A: alarm
P(A|B) = 99%
P(A|-B) = 1%
P(B|A) = P(BA)/P(A) = P(A|B)*P(B)/[P(A|B)*P(B) + P(A|-B)*P(-B)]
...
4.
(1) 4*2*2*4*2*2*2*4/(6^8)
(2) 2*2*4*2*2*2*4/(6^7)
(3) 4*2*2*4*4*4*2/(6^7)
(1 |
|
|
e*****r 发帖数: 379 | 3 above are C# codes and vb.net codes respectively(both compiled by vs.net 2008 Express):
In my laptop, results for speed testing:
Matlab:
ver 7.1: limit of array size overlimit for 1E4*1e4*1e1 size, has to
change to loop format 20x for loop
Total time: 38.01second
VB.net: total loop 1e9 (1 billion)
total time: 18.64 second
VSharp.net:
total time:21.5 second!!!
netSDK_CSC:
total time: 21.625 second!!!
Python 2.5:
10000x1000x10 loops with For-Loop (it's a very special one!) |
|
e********d 发帖数: 2073 | 4 柬埔寨 老挝 虽然有些山。 但在我党面前是小菜一碟。 公路铁路高压输电线水电站一
路修到底。
可以大幅改善柬埔寨老挝的生活水平。
同时开放一部分市场给老挝柬埔寨, 牢牢地绑在中华战车上。
https:[email protected]/* */,102.6012015,6.75z/data=!5m1!1e4
那么大的平地, 种粮食的好地方 |
|
发帖数: 1 | 5 1e4卡在国会跳钢管舞,扭动大屁股大长腿,赢得国会老爷们的满堂彩,被选为议长 |
|
w******t 发帖数: 16937 | 6 分特,想看专业的?
看这个。声明:因为网络安全原因,我删去了一些必须删去的内容。
http://schema.org/WebPage">Google
|
|