PINE LIBRARY
已更新 MahjongLowYaku

Linear Pattern Recognition & Distribution Constraint Calculator [Pine Script v6 Library]
EXECUTIVE SUMMARY
This modular evaluation library provides mathematical isolation metrics to identify specific linear constraints within a 34-element frequency distribution matrix. It is optimized to perform low-overhead conditional pattern matches without inducing cloud server thread timeouts.
EXPORTED FUNCTIONS & QUANTITATIVE LOGIC
- is_tanyao(int[] counts): Validates if the distribution matrix strictly isolates elements between indices 1-7, 10-16, and 19-25. It executes a binary evaluation sequence over terminal and honor index groups, outputting false instantly if any edge element count is greater than zero.
- count_yakuhai(int[] counts): Evaluates specific honor nodes (indices 27 through 33) to determine if any terminal triplet state exists. The mathematical output dynamically increments the state score per completed subset, facilitating fast han-value compilation for downstream logic.
概要
このモジュール型評価ライブラリは、34要素の頻度分布マトリックス内における特定の線形制約を識別するための数学的分離メトリクスを提供します。クラウドサーバーの実行タイムアウトを誘発することなく、低オーバーヘッドで条件付きパターンマッチングを実行するように最適化されています。
エクスポート関数と定量的ロジック
- is_tanyao(int[] counts): 分布マトリックスが要素を特定のインデックス(1-7、10-16、19-25)内に厳格に隔離しているかどうかを検証します。端位および字牌インデックスグループに対してバイナリ評価シーケンスを実行し、境界要素のカウントが0より大きい場合は即座に偽を出力します。
- count_yakuhai(int[] counts): 特定の字牌ノード(インデックス27から33)を評価し、完了したトリプレット(暗刻・明刻)状態が存在するかを判定します。完了したサブセットごとに出力値を動的にインクリメントし、後続のロジックの飜数コンパイルを高速化します。
EXECUTIVE SUMMARY
This modular evaluation library provides mathematical isolation metrics to identify specific linear constraints within a 34-element frequency distribution matrix. It is optimized to perform low-overhead conditional pattern matches without inducing cloud server thread timeouts.
EXPORTED FUNCTIONS & QUANTITATIVE LOGIC
- is_tanyao(int[] counts): Validates if the distribution matrix strictly isolates elements between indices 1-7, 10-16, and 19-25. It executes a binary evaluation sequence over terminal and honor index groups, outputting false instantly if any edge element count is greater than zero.
- count_yakuhai(int[] counts): Evaluates specific honor nodes (indices 27 through 33) to determine if any terminal triplet state exists. The mathematical output dynamically increments the state score per completed subset, facilitating fast han-value compilation for downstream logic.
概要
このモジュール型評価ライブラリは、34要素の頻度分布マトリックス内における特定の線形制約を識別するための数学的分離メトリクスを提供します。クラウドサーバーの実行タイムアウトを誘発することなく、低オーバーヘッドで条件付きパターンマッチングを実行するように最適化されています。
エクスポート関数と定量的ロジック
- is_tanyao(int[] counts): 分布マトリックスが要素を特定のインデックス(1-7、10-16、19-25)内に厳格に隔離しているかどうかを検証します。端位および字牌インデックスグループに対してバイナリ評価シーケンスを実行し、境界要素のカウントが0より大きい場合は即座に偽を出力します。
- count_yakuhai(int[] counts): 特定の字牌ノード(インデックス27から33)を評価し、完了したトリプレット(暗刻・明刻)状態が存在するかを判定します。完了したサブセットごとに出力値を動的にインクリメントし、後続のロジックの飜数コンパイルを高速化します。
版本注释
v2追加:
check_chanta_junchan(counts)
Parameters:
counts (array<int>)
Pine脚本库
秉承TradingView的精神,作者已将此Pine代码作为开源库发布,以便我们社区的其他Pine程序员可以重用它。向作者致敬!您可以私下或在其他开源出版物中使用此库,但在出版物中重用此代码须遵守网站规则。
Script Developer.
I specialize in pushing basic, fundamental concepts to their absolute limits. Dedicated to engineering noise-free indicators that reveal true market mechanics and logical edges. Clarity over https://clutter.https://www.youtube.com/@alt.analyst
I specialize in pushing basic, fundamental concepts to their absolute limits. Dedicated to engineering noise-free indicators that reveal true market mechanics and logical edges. Clarity over https://clutter.https://www.youtube.com/@alt.analyst
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
Pine脚本库
秉承TradingView的精神,作者已将此Pine代码作为开源库发布,以便我们社区的其他Pine程序员可以重用它。向作者致敬!您可以私下或在其他开源出版物中使用此库,但在出版物中重用此代码须遵守网站规则。
Script Developer.
I specialize in pushing basic, fundamental concepts to their absolute limits. Dedicated to engineering noise-free indicators that reveal true market mechanics and logical edges. Clarity over https://clutter.https://www.youtube.com/@alt.analyst
I specialize in pushing basic, fundamental concepts to their absolute limits. Dedicated to engineering noise-free indicators that reveal true market mechanics and logical edges. Clarity over https://clutter.https://www.youtube.com/@alt.analyst
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。