PINE LIBRARY
Actualizado 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)を評価し、完了したトリプレット(暗刻・明刻)状態が存在するかを判定します。完了したサブセットごとに出力値を動的にインクリメントし、後続のロジックの飜数コンパイルを高速化します。
Notas de prensa
v2追加:
check_chanta_junchan(counts)
Parameters:
counts (array<int>)
Biblioteca Pine
Fiel al espíritu de TradingView, el autor ha publicado este código de Pine como biblioteca de código abierto, para que otros programadores de nuestra comunidad puedan reutilizarlo. ¡Enhorabuena al autor! Puede usar esta biblioteca de forma privada o en otras publicaciones de código abierto, pero su reutilización en publicaciones está sujeta a nuestras Normas internas.
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
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Biblioteca Pine
Fiel al espíritu de TradingView, el autor ha publicado este código de Pine como biblioteca de código abierto, para que otros programadores de nuestra comunidad puedan reutilizarlo. ¡Enhorabuena al autor! Puede usar esta biblioteca de forma privada o en otras publicaciones de código abierto, pero su reutilización en publicaciones está sujeta a nuestras Normas internas.
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
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.