PINE LIBRARY
SMC_KNN

Library "SMC_KNN"
euclidean_distance(f1, f2)
2つの特徴量ベクトル間のユークリッド距離を計算
Parameters:
f1 (array<float>): 特徴量配列 1
f2 (array<float>): 特徴量配列 2
Returns: float 距離 (Distance)
get_k_nearest(distances, k)
K個の直近傍(Nearest Neighbors)のインデックスを取得
Parameters:
distances (array<float>): 現在のイベントと過去の全イベントとの距離配列
k (int): 取得する近傍の数 (K)
Returns: array<int> 最も距離が近い過去イベントのインデックス配列
euclidean_distance(f1, f2)
2つの特徴量ベクトル間のユークリッド距離を計算
Parameters:
f1 (array<float>): 特徴量配列 1
f2 (array<float>): 特徴量配列 2
Returns: float 距離 (Distance)
get_k_nearest(distances, k)
K個の直近傍(Nearest Neighbors)のインデックスを取得
Parameters:
distances (array<float>): 現在のイベントと過去の全イベントとの距離配列
k (int): 取得する近傍の数 (K)
Returns: array<int> 最も距離が近い過去イベントのインデックス配列
Bibliothèque Pine
Dans l'esprit TradingView, l'auteur a publié ce code Pine sous forme de bibliothèque open source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur! Vous pouvez utiliser cette bibliothèque à titre privé ou dans d'autres publications open source, mais la réutilisation de ce code dans des publications est régie par nos Règles.
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
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Bibliothèque Pine
Dans l'esprit TradingView, l'auteur a publié ce code Pine sous forme de bibliothèque open source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur! Vous pouvez utiliser cette bibliothèque à titre privé ou dans d'autres publications open source, mais la réutilisation de ce code dans des publications est régie par nos Règles.
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
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.