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)を評価し、完了したトリプレット(暗刻・明刻)状態が存在するかを判定します。完了したサブセットごとに出力値を動的にインクリメントし、後続のロジックの飜数コンパイルを高速化します。
Release Note
v2追加:
check_chanta_junchan(counts)
Parameters:
counts (array<int>)
ไลบรารีไพน์
ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนได้เผยแพร่ Pine code นี้เป็นโอเพนซอร์สไลบรารีเพื่อให้ 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 อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
ไลบรารีไพน์
ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนได้เผยแพร่ Pine code นี้เป็นโอเพนซอร์สไลบรารีเพื่อให้ 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 อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน