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.
ספריית Pine
ברוח TradingView אמיתית, המחבר פרסם את קוד Pine זה כספריית קוד פתוח כך שמתכנתי Pine אחרים מהקהילה שלנו יוכלו לעשות בו שימוש חוזר. כל הכבוד למחבר! אתה יכול להשתמש בספרייה זו באופן פרטי או בפרסומי קוד פתוח אחרים, אך השימוש החוזר בקוד זה בפרסומים כפוף לכללי הבית.
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.
ספריית Pine
ברוח TradingView אמיתית, המחבר פרסם את קוד Pine זה כספריית קוד פתוח כך שמתכנתי Pine אחרים מהקהילה שלנו יוכלו לעשות בו שימוש חוזר. כל הכבוד למחבר! אתה יכול להשתמש בספרייה זו באופן פרטי או בפרסומי קוד פתוח אחרים, אך השימוש החוזר בקוד זה בפרסומים כפוף לכללי הבית.
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.