PINE LIBRARY
ที่อัปเดต: FunctionProbabilityViterbi

Library "FunctionProbabilityViterbi"
The Viterbi Algorithm calculates the most likely sequence of hidden states *(called Viterbi path)*
that results in a sequence of observed events.
viterbi(observations, transitions, emissions, initial_distribution)
Calculate most probable path in a Markov model.
Parameters:
observations (int[]): array<int> . Observation states data.
transitions (matrix<float>): matrix<float> . Transition probability table, (HxH, H:Hidden states).
emissions (matrix<float>): matrix<float> . Emission probability table, (OxH, O:Observed states).
initial_distribution (float[]): array<float> . Initial probability distribution for the hidden states.
Returns: array<int>. Most probable path.
The Viterbi Algorithm calculates the most likely sequence of hidden states *(called Viterbi path)*
that results in a sequence of observed events.
viterbi(observations, transitions, emissions, initial_distribution)
Calculate most probable path in a Markov model.
Parameters:
observations (int[]): array<int> . Observation states data.
transitions (matrix<float>): matrix<float> . Transition probability table, (HxH, H:Hidden states).
emissions (matrix<float>): matrix<float> . Emission probability table, (OxH, O:Observed states).
initial_distribution (float[]): array<float> . Initial probability distribution for the hidden states.
Returns: array<int>. Most probable path.
เอกสารเผยแพร่
v2 minor update.เอกสารเผยแพร่
Minor update: console library version.เอกสารเผยแพร่
v4 - added some error overloads with custom message to handle some cases.เอกสารเผยแพร่
v5 - updated the description of the function to fix a typo, thanks to serkany88 for catching the little bugger :pUpdated:
viterbi(observations, transitions, emissions, initial_distribution)
Calculate most probable path in a Markov model.
Parameters:
observations (array<int>): array<int> . Observation states data.
transitions (matrix<float>): matrix<float> . Transition probability table, (HxH, H:Hidden states).
emissions (matrix<float>): matrix<float> . Emission probability table, (HxO, O:Observed states).
initial_distribution (array<float>): array<float> . Initial probability distribution for the hidden states.
Returns: array<int>. Most probable path.
ไลบรารีไพน์
ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนได้เผยแพร่ Pine code นี้เป็นโอเพนซอร์สไลบรารีเพื่อให้ Pine โปรแกรมเมอร์คนอื่นในชุมชนของเราสามารถนำไปใช้ซ้ำได้ ต้องขอบคุณผู้เขียน! คุณสามารถใช้ไลบรารีนี้ในแบบส่วนตัวหรือในการเผยแพร่แบบโอเพนซอร์สอื่น ๆ แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
ไลบรารีไพน์
ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนได้เผยแพร่ Pine code นี้เป็นโอเพนซอร์สไลบรารีเพื่อให้ Pine โปรแกรมเมอร์คนอื่นในชุมชนของเราสามารถนำไปใช้ซ้ำได้ ต้องขอบคุณผู้เขียน! คุณสามารถใช้ไลบรารีนี้ในแบบส่วนตัวหรือในการเผยแพร่แบบโอเพนซอร์สอื่น ๆ แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน