RicardoSantos

MarkovAlgorithm

RicardoSantos Wizard アップデート済   
Library "MarkovAlgorithm"
Markov algorithm is a string rewriting system that uses grammar-like rules to operate on strings of
symbols. Markov algorithms have been shown to be Turing-complete, which means that they are suitable as a
general model of computation and can represent any mathematical expression from its simple notation.
~ wikipedia
.
reference:
en.wikipedia.org/wiki/Markov_algorithm
rosettacode.org/wiki...e_a_Markov_algorithm

parse(rules, separator)
  Parameters:
    rules (string)
    separator (string)
  Returns: - `array<rule> _rules`: List of rules.
---
Usage:
- `parse("|0 -> 0||\n1 -> 0|\n0 -> ")`

apply(expression, rules)
  Aplies rules to a expression.
  Parameters:
    expression (string): `string`: Text expression to be formated by the rules.
    rules (rule): `string`: Rules to apply to expression on a string format to be parsed.
  Returns: - `string _result`: Formated expression.
---
Usage:
- `apply("101", parse("|0 -> 0||\n1 -> 0|\n0 -> "))`

apply(expression, rules)
  Parameters:
    expression (string)
    rules (string)
  Returns: - `string _result`: Formated expression.
---
Usage:
- `apply("101", parse("|0 -> 0||\n1 -> 0|\n0 -> "))`


rule
  String pair that represents `pattern -> replace`, each rule may be ordinary or terminating.
  Fields:
    pattern (series string): Pattern to replace.
    replacement (series string): Replacement patterns.
    termination (series bool): Termination rule.
リリースノート:
v2 minor update.
リリースノート:
Fix logger version.
Pineライブラリ

TradingViewの精神に則り、作者はPineコードをオープンソースライブラリとして公開し、コミュニティの他のPineプログラマーが再利用できるようにしました。作者に敬意を表します!このライブラリを個人的に、または他のオープンソースの投稿で使用することができますが、、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

このライブラリを使用したいですか?

以下の行をコピーして、スクリプト内に貼り付けてください。