PINE LIBRARY
Cập nhật

MahjongLowYaku

145
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)を評価し、完了したトリプレット(暗刻・明刻)状態が存在するかを判定します。完了したサブセットごとに出力値を動的にインクリメントし、後続のロジックの飜数コンパイルを高速化します。
Phát hành các Ghi chú
v2

追加:
check_chanta_junchan(counts)
  Parameters:
    counts (array<int>)

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.