最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊

Mika傷害

2023-09-12 15:05 作者:Baobhan_Sith  | 我要投稿

關(guān)于夏萊DB計(jì)算器中, 所計(jì)算的mika平均傷害有沒有每段分別計(jì)算衰減, 可以直接下一個(gè)定論: 夏萊DB計(jì)算了每段的衰減, 所以此數(shù)據(jù)可以直接使用.?

關(guān)于如何計(jì)算mika均傷

如果使用蒙特卡洛實(shí)驗(yàn)來計(jì)算均傷是對計(jì)算資源的浪費(fèi),?因?yàn)檫@里可以直接利用全期望公式解析地算出均傷.

假如使用11項(xiàng)的數(shù)列a來表示mika每段傷害

a_n%2C%20n%3D1%2C2%2C3%2C...%2C11%0A%0A

眾所周知, mika有11段, 其中前十段基礎(chǔ)傷害浮動(dòng)最低為a, 最高為b, 而第11段浮動(dòng)最低為10a, 最高為10b, 那么可以列出傷害的遞推式

%5Cfrac%7Ba_1%7D%7B1%2B%5Cfrac%7B%5Cmathrm%7BcurrentHP%7D%7D%7B%5Cmathrm%7BtotalHP%7D%7D%7D%5Csim%20U%5Cleft(%20a%2Cb%20%5Cright)%20%0A

%5Cfrac%7Ba_2%7D%7B1%2B%5Cfrac%7B%5Cmathrm%7BcurrentHP%7D-a_1%7D%7B%5Cmathrm%7BtotalHP%7D%7D%7D%5Csim%20U%5Cleft(%20a%2Cb%20%5Cright)%20%0A

...

%5Cfrac%7Ba_n%7D%7B1%2B%5Cfrac%7B%5Cmathrm%7BcurrentHP%7D-%5Cleft(%20a_1%2B...%2Ba_%7Bn-1%7D%20%5Cright)%7D%7B%5Cmathrm%7BtotalHP%7D%7D%7D%5Csim%20U%5Cleft(%20a%2Cb%20%5Cright)%20%0A

...

%5Cfrac%7Ba_%7B10%7D%7D%7B1%2B%5Cfrac%7B%5Cmathrm%7BcurrentHP%7D-%5Cleft(%20a_1%2B...%2Ba_9%20%5Cright)%7D%7B%5Cmathrm%7BtotalHP%7D%7D%7D%5Csim%20U%5Cleft(%20a%2Cb%20%5Cright)%20%0A

%5Cfrac%7Ba_%7B11%7D%7D%7B1%2B%5Cfrac%7B%5Cmathrm%7BcurrentHP%7D-%5Cleft(%20a_1%2B...%2Ba_%7B10%7D%20%5Cright)%7D%7B%5Cmathrm%7BtotalHP%7D%7D%7D%5Csim%20U%5Cleft(%2010a%2C10b%20%5Cright)%20%0A

我們想求的是11段總傷的期望, 也就是

%5Cmathrm%7BE%7D%5Cleft(%20a_1%2Ba_2%2B...%2Ba_%7B10%7D%2Ba_%7B11%7D%20%5Cright)%20%0A

使用全期望公式, 并記?%5Cmu%20_0%3D%5Cfrac%7Ba%2Bb%7D%7B2%7D%0A?, 可以得到

%3D%5Cmathrm%7BE%7D%5Cleft(%20%5Cmathrm%7BE%7D%5Cleft(%20a_1%2Ba_2%2B...%2Ba_%7B10%7D%2Ba_%7B11%7D%7Ca_1%2Ba_2%2B...%2Ba_%7B10%7D%20%5Cright)%20%5Cright)%20%0A

%3D%5Cmathrm%7BE%7D%5Cleft(%20a_1%2Ba_2%2B...%2Ba_%7B10%7D%2B%5Cleft(%201%2B%5Cfrac%7B%5Cmathrm%7BcurrentHP%7D-%5Cleft(%20a_1%2B...%2Ba_%7B10%7D%20%5Cright)%7D%7B%5Cmathrm%7BtotalHP%7D%7D%20%5Cright)%20%5Cleft(%205a%2B5b%20%5Cright)%20%5Cright)%20%0A

%3D%5Cleft(%201%2B%5Cfrac%7B%5Cmathrm%7BcurrentHP%7D%7D%7B%5Cmathrm%7BtotalHP%7D%7D%20%5Cright)%2010%5Cmu%20_0%2B%5Cleft(%201-%5Cfrac%7B10%5Cmu%20_0%7D%7B%5Cmathrm%7BtotalHP%7D%7D%20%5Cright)%20%5Cmathrm%7BE%7D%5Cleft(%20a_1%2Ba_2%2B...%2Ba_%7B10%7D%20%5Cright)%20%0A

這啟發(fā)我們可以通過找遞推關(guān)系來計(jì)算:

%5Cmathrm%7BE%7D_n%3D%5Cmathrm%7BE%7D%5Cleft(%20a_1%2Ba_2%2B...%2Ba_n%20%5Cright)%20%0A

%3D%5Cmathrm%7BE%7D%5Cleft(%20%5Cmathrm%7BE%7D%5Cleft(%20a_1%2Ba_2%2B...%2Ba_n%7Ca_1%2Ba_2%2B...%2Ba_%7Bn-1%7D%20%5Cright)%20%5Cright)%20%0A

%3D%5Cmathrm%7BE%7D%5Cleft(%20a_1%2Ba_2%2B...%2Ba_%7Bn-1%7D%2B%5Cleft(%201%2B%5Cfrac%7B%5Cmathrm%7BcurrentHP%7D-%5Cleft(%20a_1%2B...%2Ba_%7Bn-1%7D%20%5Cright)%7D%7B%5Cmathrm%7BtotalHP%7D%7D%20%5Cright)%20%5Cmu%20_0%20%5Cright)%20%0A

%3D%5Cleft(%201%2B%5Cfrac%7B%5Cmathrm%7BcurrentHP%7D%7D%7B%5Cmathrm%7BtotalHP%7D%7D%20%5Cright)%20%5Cmu%20_0%2B%5Cleft(%201-%5Cfrac%7B%5Cmu%20_0%7D%7B%5Cmathrm%7BtotalHP%7D%7D%20%5Cright)%20%5Cmathrm%7BE%7D%5Cleft(%20a_1%2Ba_2%2B...%2Ba_%7Bn-1%7D%20%5Cright)%20%0A

%3D%5Cleft(%201%2B%5Cfrac%7B%5Cmathrm%7BcurrentHP%7D%7D%7B%5Cmathrm%7BtotalHP%7D%7D%20%5Cright)%20%5Cmu%20_0%2B%5Cleft(%201-%5Cfrac%7B%5Cmu%20_0%7D%7B%5Cmathrm%7BtotalHP%7D%7D%20%5Cright)%20%5Cmathrm%7BE%7D_%7Bn-1%7D%0A

%5Cmathrm%7BE%7D_1%3D%5Cmathrm%7BE%7D%5Cleft(%20a_1%20%5Cright)%20%3D%5Cleft(%201%2B%5Cfrac%7B%5Cmathrm%7BcurrentHP%7D%7D%7B%5Cmathrm%7BtotalHP%7D%7D%20%5Cright)%20%5Cmu%20_0%0A

容易算出數(shù)列通項(xiàng)為

%5Cmathrm%7BE%7D_n%3D%5Cleft(%20%5Cmathrm%7BtotalHP%7D%2B%5Cmathrm%7BcurrentHP%7D%20%5Cright)%20%5Cleft(%201-%5Cleft(%201-%5Cfrac%7B%5Cmu%20_0%7D%7B%5Cmathrm%7BtotalHP%7D%7D%20%5Cright)%20%5En%20%5Cright)%20%0A

代回第十一項(xiàng)的遞推關(guān)系

%5Cmathrm%7BE%7D%5Cleft(%20a_1%2Ba_2%2B...%2Ba_%7B10%7D%2Ba_%7B11%7D%20%5Cright)%20%3D%5Cleft(%201%2B%5Cfrac%7B%5Cmathrm%7BcurrentHP%7D%7D%7B%5Cmathrm%7BtotalHP%7D%7D%20%5Cright)%2010%5Cmu%20_0%2B%5Cleft(%201-%5Cfrac%7B10%5Cmu%20_0%7D%7B%5Cmathrm%7BtotalHP%7D%7D%20%5Cright)%20%5Cmathrm%7BE%7D_%7B10%7D%0A

%3D%5Cleft(%201%2B%5Cfrac%7B%5Cmathrm%7BcurrentHP%7D%7D%7B%5Cmathrm%7BtotalHP%7D%7D%20%5Cright)%2010%5Cmu%20_0%2B%5Cleft(%201-%5Cfrac%7B10%5Cmu%20_0%7D%7B%5Cmathrm%7BtotalHP%7D%7D%20%5Cright)%20%5Cleft(%20%5Cmathrm%7BtotalHP%7D%2B%5Cmathrm%7BcurrentHP%7D%20%5Cright)%20%5Cleft(%201-%5Cleft(%201-%5Cfrac%7B%5Cmu%20_0%7D%7B%5Cmathrm%7BtotalHP%7D%7D%20%5Cright)%20%5E%7B10%7D%20%5Cright)%20%0A

驗(yàn)證

使用此公式來計(jì)算

先根據(jù)敵人0血時(shí)的數(shù)據(jù)算出基礎(chǔ)傷害

a%3D316389*11%2F20%3D174014%2C%20b%3D406083*11%2F20%3D223346%2C%20%5Cmu%20_0%3D%5Cleft(%20174014%2B223346%20%5Cright)%20%2F2%3D198680%0A

先算tm白滿血時(shí)的傷害, 這是夏萊DB的計(jì)算結(jié)果

這是使用公式的計(jì)算結(jié)果(計(jì)算由axmath編輯器自帶的計(jì)算功能完成)

可以發(fā)現(xiàn)是一樣的. 再貼上使用蒙特卡洛方法實(shí)驗(yàn)1000000次的結(jié)果

然后再算一下白只剩50%血時(shí)的傷害, 夏萊DB

公式

蒙特卡洛方法

也就是說, 夏萊DB中計(jì)算未花的傷害確實(shí)是考慮了每段的衰減, 不需要自己再另外考慮

蒙特卡洛方法代碼


Mika傷害的評(píng)論 (共 條)

分享到微博請遵守國家法律
达孜县| 教育| 宁陵县| 疏勒县| 西宁市| 庆云县| 杭州市| 宁津县| 哈尔滨市| 门源| 乐昌市| 萨嘎县| 连南| 黔江区| 麻栗坡县| 玉屏| 四川省| 沾化县| 攀枝花市| 将乐县| 石林| 当阳市| 咸宁市| 茶陵县| 大荔县| 陆良县| 三亚市| 遂平县| 桐柏县| 舟山市| 八宿县| 西乡县| 云浮市| 连城县| 巧家县| 宝丰县| 包头市| 恩施市| 乌拉特后旗| 宝丰县| 鄂州市|