Skip to content

Commit

Permalink
html update
Browse files Browse the repository at this point in the history
  • Loading branch information
OneBST committed Nov 1, 2024
1 parent c3bb56f commit 5f2d3d8
Show file tree
Hide file tree
Showing 27 changed files with 214 additions and 145 deletions.
16 changes: 8 additions & 8 deletions _sources/games/genshin_impact/gacha_models.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ GGanalysis 使用基本的抽卡模板模型结合 `原神抽卡系统参数 <ht

- ``up_pity`` UP道具保底状态,设为 1 即为玩家所说的大保底

- ``cr_pity`` 「捕获明光」保底状态

基本模型
------------------------

Expand All @@ -46,8 +48,6 @@ GGanalysis 使用基本的抽卡模板模型结合 `原神抽卡系统参数 <ht

**角色活动祈愿5.0版本后获得UP五星角色的模型**

注意此模型为当前为近似模型,仅将UP概率改为了55%。

.. automethod:: GGanalysis.games.genshin_impact.gacha_model.up_5star_character

**角色活动祈愿5.0版本前获得UP五星角色的模型**
Expand All @@ -66,8 +66,8 @@ GGanalysis 使用基本的抽卡模板模型结合 `原神抽卡系统参数 <ht
import GGanalysis.games.genshin_impact as GI
# 原神角色池的计算
print('角色池在垫了20抽,有大保底的情况下抽3个UP五星抽数的分布')
dist_c = GI.up_5star_character(item_num=3, item_pity=20, up_pity=1)
print('角色池在垫了20抽,有大保底,已经连歪两次的情况下抽3个UP五星抽数的分布')
dist_c = GI.up_5star_character(item_num=3, item_pity=20, up_pity=1, cr_pity=2)
print('期望为', dist_c.exp, '方差为', dist_c.var, '分布为', dist_c.dist)
武器活动祈愿模型
Expand Down Expand Up @@ -115,13 +115,13 @@ GGanalysis 使用基本的抽卡模板模型结合 `原神抽卡系统参数 <ht
其它模型
------------------------

**从角色活动祈愿中获取位于常驻祈愿的特定五星角色的模型**
**5.0前从角色活动祈愿中获取位于常驻祈愿的特定五星角色的模型**

.. automethod:: GGanalysis.games.genshin_impact.gacha_model.stander_5star_character_in_up
.. automethod:: GGanalysis.games.genshin_impact.gacha_model.classic_stander_5star_character_in_up

**从武器活动祈愿中获取位于常驻祈愿的特定五星武器的模型**
**5.0前从武器活动祈愿中获取位于常驻祈愿的特定五星武器的模型**

.. automethod:: GGanalysis.games.genshin_impact.gacha_model.stander_5star_weapon_in_up
.. automethod:: GGanalysis.games.genshin_impact.gacha_model.classic_stander_5star_weapon_in_up

其它使用示例
------------------------
Expand Down
2 changes: 1 addition & 1 deletion _sources/start_using/check_gacha_plan.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
ans_dist *= ZZZ.up_5star_character(num_c) * ZZZ.up_5star_weapon(num_w)
ans_dist.dist = ans_dist.dist[:total_pulls+1]
print("成功概率", sum(ans_dist.dist))
ans_dist.p_normalization() # 归一化
ans_dist = ans_dist.normalized() # 归一化
print("成功玩家期望抽数消耗", ans_dist.exp)
full_dist = ZZZ.up_5star_character(total_c)*ZZZ.up_5star_weapon(total_w)
print("获得计划道具期望", full_dist.exp)
19 changes: 8 additions & 11 deletions _static/pygments.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
.highlight .cs { color: #8f5902; font-style: italic } /* Comment.Special */
.highlight .gd { color: #a40000 } /* Generic.Deleted */
.highlight .ge { color: #000000; font-style: italic } /* Generic.Emph */
.highlight .ges { color: #000000; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.highlight .gr { color: #ef2929 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #00A000 } /* Generic.Inserted */
Expand Down Expand Up @@ -102,21 +101,20 @@ body[data-theme="dark"] .highlight .x { color: #d0d0d0 } /* Other */
body[data-theme="dark"] .highlight .p { color: #d0d0d0 } /* Punctuation */
body[data-theme="dark"] .highlight .ch { color: #ababab; font-style: italic } /* Comment.Hashbang */
body[data-theme="dark"] .highlight .cm { color: #ababab; font-style: italic } /* Comment.Multiline */
body[data-theme="dark"] .highlight .cp { color: #ff3a3a; font-weight: bold } /* Comment.Preproc */
body[data-theme="dark"] .highlight .cp { color: #cd2828; font-weight: bold } /* Comment.Preproc */
body[data-theme="dark"] .highlight .cpf { color: #ababab; font-style: italic } /* Comment.PreprocFile */
body[data-theme="dark"] .highlight .c1 { color: #ababab; font-style: italic } /* Comment.Single */
body[data-theme="dark"] .highlight .cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */
body[data-theme="dark"] .highlight .gd { color: #ff3a3a } /* Generic.Deleted */
body[data-theme="dark"] .highlight .gd { color: #d22323 } /* Generic.Deleted */
body[data-theme="dark"] .highlight .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */
body[data-theme="dark"] .highlight .ges { color: #d0d0d0; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
body[data-theme="dark"] .highlight .gr { color: #ff3a3a } /* Generic.Error */
body[data-theme="dark"] .highlight .gr { color: #d22323 } /* Generic.Error */
body[data-theme="dark"] .highlight .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */
body[data-theme="dark"] .highlight .gi { color: #589819 } /* Generic.Inserted */
body[data-theme="dark"] .highlight .go { color: #cccccc } /* Generic.Output */
body[data-theme="dark"] .highlight .gp { color: #aaaaaa } /* Generic.Prompt */
body[data-theme="dark"] .highlight .gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */
body[data-theme="dark"] .highlight .gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */
body[data-theme="dark"] .highlight .gt { color: #ff3a3a } /* Generic.Traceback */
body[data-theme="dark"] .highlight .gt { color: #d22323 } /* Generic.Traceback */
body[data-theme="dark"] .highlight .kc { color: #6ebf26; font-weight: bold } /* Keyword.Constant */
body[data-theme="dark"] .highlight .kd { color: #6ebf26; font-weight: bold } /* Keyword.Declaration */
body[data-theme="dark"] .highlight .kn { color: #6ebf26; font-weight: bold } /* Keyword.Namespace */
Expand Down Expand Up @@ -188,21 +186,20 @@ body:not([data-theme="light"]) .highlight .x { color: #d0d0d0 } /* Other */
body:not([data-theme="light"]) .highlight .p { color: #d0d0d0 } /* Punctuation */
body:not([data-theme="light"]) .highlight .ch { color: #ababab; font-style: italic } /* Comment.Hashbang */
body:not([data-theme="light"]) .highlight .cm { color: #ababab; font-style: italic } /* Comment.Multiline */
body:not([data-theme="light"]) .highlight .cp { color: #ff3a3a; font-weight: bold } /* Comment.Preproc */
body:not([data-theme="light"]) .highlight .cp { color: #cd2828; font-weight: bold } /* Comment.Preproc */
body:not([data-theme="light"]) .highlight .cpf { color: #ababab; font-style: italic } /* Comment.PreprocFile */
body:not([data-theme="light"]) .highlight .c1 { color: #ababab; font-style: italic } /* Comment.Single */
body:not([data-theme="light"]) .highlight .cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */
body:not([data-theme="light"]) .highlight .gd { color: #ff3a3a } /* Generic.Deleted */
body:not([data-theme="light"]) .highlight .gd { color: #d22323 } /* Generic.Deleted */
body:not([data-theme="light"]) .highlight .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */
body:not([data-theme="light"]) .highlight .ges { color: #d0d0d0; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
body:not([data-theme="light"]) .highlight .gr { color: #ff3a3a } /* Generic.Error */
body:not([data-theme="light"]) .highlight .gr { color: #d22323 } /* Generic.Error */
body:not([data-theme="light"]) .highlight .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */
body:not([data-theme="light"]) .highlight .gi { color: #589819 } /* Generic.Inserted */
body:not([data-theme="light"]) .highlight .go { color: #cccccc } /* Generic.Output */
body:not([data-theme="light"]) .highlight .gp { color: #aaaaaa } /* Generic.Prompt */
body:not([data-theme="light"]) .highlight .gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */
body:not([data-theme="light"]) .highlight .gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */
body:not([data-theme="light"]) .highlight .gt { color: #ff3a3a } /* Generic.Traceback */
body:not([data-theme="light"]) .highlight .gt { color: #d22323 } /* Generic.Traceback */
body:not([data-theme="light"]) .highlight .kc { color: #6ebf26; font-weight: bold } /* Keyword.Constant */
body:not([data-theme="light"]) .highlight .kd { color: #6ebf26; font-weight: bold } /* Keyword.Declaration */
body:not([data-theme="light"]) .highlight .kn { color: #6ebf26; font-weight: bold } /* Keyword.Namespace */
Expand Down
12 changes: 8 additions & 4 deletions games/alchemy_stars/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,20 @@
<li class="toctree-l2"><a class="reference internal" href="../../start_using/quick_visualization.html">快速可视化</a></li>
</ul>
</li>
<li class="toctree-l1 has-children"><a class="reference internal" href="../../reference_manual/index.html">参考手册</a><input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" role="switch" type="checkbox"/><label for="toctree-checkbox-2"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="../../reference_manual/basic_tools.html">基础工具</a></li>
</ul>
</li>
</ul>
<p class="caption" role="heading"><span class="caption-text">具体游戏支持</span></p>
<ul class="current">
<li class="toctree-l1 current has-children"><a class="reference internal" href="../index.html">支持的游戏</a><input checked="" class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" role="switch" type="checkbox"/><label for="toctree-checkbox-2"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul class="current">
<li class="toctree-l2 has-children"><a class="reference internal" href="../genshin_impact/index.html">原神</a><input class="toctree-checkbox" id="toctree-checkbox-3" name="toctree-checkbox-3" role="switch" type="checkbox"/><label for="toctree-checkbox-3"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l1 current has-children"><a class="reference internal" href="../index.html">支持的游戏</a><input checked="" class="toctree-checkbox" id="toctree-checkbox-3" name="toctree-checkbox-3" role="switch" type="checkbox"/><label for="toctree-checkbox-3"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul class="current">
<li class="toctree-l2 has-children"><a class="reference internal" href="../genshin_impact/index.html">原神</a><input class="toctree-checkbox" id="toctree-checkbox-4" name="toctree-checkbox-4" role="switch" type="checkbox"/><label for="toctree-checkbox-4"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l3"><a class="reference internal" href="../genshin_impact/gacha_models.html">原神抽卡模型</a></li>
<li class="toctree-l3"><a class="reference internal" href="../genshin_impact/artifact_models.html">原神圣遗物模型</a></li>
</ul>
</li>
<li class="toctree-l2 has-children"><a class="reference internal" href="../honkai_star_rail/index.html">崩坏:星穹铁道</a><input class="toctree-checkbox" id="toctree-checkbox-4" name="toctree-checkbox-4" role="switch" type="checkbox"/><label for="toctree-checkbox-4"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l2 has-children"><a class="reference internal" href="../honkai_star_rail/index.html">崩坏:星穹铁道</a><input class="toctree-checkbox" id="toctree-checkbox-5" name="toctree-checkbox-5" role="switch" type="checkbox"/><label for="toctree-checkbox-5"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l3"><a class="reference internal" href="../honkai_star_rail/gacha_models.html">崩坏:星穹铁道抽卡模型</a></li>
<li class="toctree-l3"><a class="reference internal" href="../honkai_star_rail/relic_models.html">崩坏:星穹铁道遗器模型</a></li>
</ul>
Expand All @@ -198,7 +202,7 @@
</ul>
<p class="caption" role="heading"><span class="caption-text">抽卡导论</span></p>
<ul>
<li class="toctree-l1 has-children"><a class="reference internal" href="../../introduction_to_gacha/index.html">抽卡导论</a><input class="toctree-checkbox" id="toctree-checkbox-5" name="toctree-checkbox-5" role="switch" type="checkbox"/><label for="toctree-checkbox-5"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l1 has-children"><a class="reference internal" href="../../introduction_to_gacha/index.html">抽卡导论</a><input class="toctree-checkbox" id="toctree-checkbox-6" name="toctree-checkbox-6" role="switch" type="checkbox"/><label for="toctree-checkbox-6"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="../../introduction_to_gacha/foundations.html">基本概念约定</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../introduction_to_gacha/statistical_modeling_methods.html">简单保底抽卡模型的统计建模方法</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../introduction_to_gacha/feedback_item_problem.html">道具返还问题</a></li>
Expand Down
12 changes: 8 additions & 4 deletions games/blue_archive/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,20 @@
<li class="toctree-l2"><a class="reference internal" href="../../start_using/quick_visualization.html">快速可视化</a></li>
</ul>
</li>
<li class="toctree-l1 has-children"><a class="reference internal" href="../../reference_manual/index.html">参考手册</a><input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" role="switch" type="checkbox"/><label for="toctree-checkbox-2"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="../../reference_manual/basic_tools.html">基础工具</a></li>
</ul>
</li>
</ul>
<p class="caption" role="heading"><span class="caption-text">具体游戏支持</span></p>
<ul class="current">
<li class="toctree-l1 current has-children"><a class="reference internal" href="../index.html">支持的游戏</a><input checked="" class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" role="switch" type="checkbox"/><label for="toctree-checkbox-2"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul class="current">
<li class="toctree-l2 has-children"><a class="reference internal" href="../genshin_impact/index.html">原神</a><input class="toctree-checkbox" id="toctree-checkbox-3" name="toctree-checkbox-3" role="switch" type="checkbox"/><label for="toctree-checkbox-3"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l1 current has-children"><a class="reference internal" href="../index.html">支持的游戏</a><input checked="" class="toctree-checkbox" id="toctree-checkbox-3" name="toctree-checkbox-3" role="switch" type="checkbox"/><label for="toctree-checkbox-3"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul class="current">
<li class="toctree-l2 has-children"><a class="reference internal" href="../genshin_impact/index.html">原神</a><input class="toctree-checkbox" id="toctree-checkbox-4" name="toctree-checkbox-4" role="switch" type="checkbox"/><label for="toctree-checkbox-4"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l3"><a class="reference internal" href="../genshin_impact/gacha_models.html">原神抽卡模型</a></li>
<li class="toctree-l3"><a class="reference internal" href="../genshin_impact/artifact_models.html">原神圣遗物模型</a></li>
</ul>
</li>
<li class="toctree-l2 has-children"><a class="reference internal" href="../honkai_star_rail/index.html">崩坏:星穹铁道</a><input class="toctree-checkbox" id="toctree-checkbox-4" name="toctree-checkbox-4" role="switch" type="checkbox"/><label for="toctree-checkbox-4"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l2 has-children"><a class="reference internal" href="../honkai_star_rail/index.html">崩坏:星穹铁道</a><input class="toctree-checkbox" id="toctree-checkbox-5" name="toctree-checkbox-5" role="switch" type="checkbox"/><label for="toctree-checkbox-5"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l3"><a class="reference internal" href="../honkai_star_rail/gacha_models.html">崩坏:星穹铁道抽卡模型</a></li>
<li class="toctree-l3"><a class="reference internal" href="../honkai_star_rail/relic_models.html">崩坏:星穹铁道遗器模型</a></li>
</ul>
Expand All @@ -198,7 +202,7 @@
</ul>
<p class="caption" role="heading"><span class="caption-text">抽卡导论</span></p>
<ul>
<li class="toctree-l1 has-children"><a class="reference internal" href="../../introduction_to_gacha/index.html">抽卡导论</a><input class="toctree-checkbox" id="toctree-checkbox-5" name="toctree-checkbox-5" role="switch" type="checkbox"/><label for="toctree-checkbox-5"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l1 has-children"><a class="reference internal" href="../../introduction_to_gacha/index.html">抽卡导论</a><input class="toctree-checkbox" id="toctree-checkbox-6" name="toctree-checkbox-6" role="switch" type="checkbox"/><label for="toctree-checkbox-6"><div class="visually-hidden">Toggle child pages in navigation</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="../../introduction_to_gacha/foundations.html">基本概念约定</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../introduction_to_gacha/statistical_modeling_methods.html">简单保底抽卡模型的统计建模方法</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../introduction_to_gacha/feedback_item_problem.html">道具返还问题</a></li>
Expand Down
Loading

0 comments on commit 5f2d3d8

Please sign in to comment.