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> 最も距離が近い過去イベントのインデックス配列
Pineライブラリ
TradingViewの精神に則り、作者はこのPineコードをオープンソースライブラリとして公開してくれました。コミュニティの他のPineプログラマーが再利用できるようにという配慮です。作者に拍手を!このライブラリは個人利用や他のオープンソースの公開コンテンツで使用できますが、公開物でのコードの再利用はハウスルールに準じる必要があります。
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
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
Pineライブラリ
TradingViewの精神に則り、作者はこのPineコードをオープンソースライブラリとして公開してくれました。コミュニティの他のPineプログラマーが再利用できるようにという配慮です。作者に拍手を!このライブラリは個人利用や他のオープンソースの公開コンテンツで使用できますが、公開物でのコードの再利用はハウスルールに準じる必要があります。
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
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。