TradingView
RicardoSantos
2020년 9월 7일 오전 10시 50분
Function K-Means Clustering
OANDA:NAS100USD
5
US Nas 100
OANDA
설명
⋅
2020년 9월 7일 오전 10시 50분
Description:
A Function that returns cluster centers for given data (X,Y) vector points.
Inputs:
_X: Array containing x data points.¹
_Y: Array containing y data points.¹
_number_of_clusters: number of clusters.
Note:
¹: _X and _Y size must match.
Outputs:
_centers_x: Array containing x data points.
_centers_y: Array containing y data points.
Resources:
rosettacode.org/wiki/K-means++_clustering
en.wikipedia.org/wiki/K-means_clustering
릴리즈 노트
⋅
2023년 3월 30일 오전 9시 1분
Update to V5 and fixed a a few errors in the code. -_-*
Oscillators
experimental
function
kmeans
cluster
코멘트
jon2snow
⋅
2023년 3월 29일 오후 9시 36분
It is sadly not working, Message bar 0 in remove.array function, Index -1 is out of bounds, array size is 1.
RicardoSantos
⋅
2023년 3월 30일 오전 9시 2분
@jon2snow
, fixed, thanks for reporting :)
luminaryfi
⋅
2020년 9월 12일 오후 3시 36분
Excellent Work
@RicardoSantos
!
joaoseguradocomercial
⋅
2023년 1월 18일 오전 9시 43분
nao roda
kakola
⋅
2021년 3월 3일 오후 8시 37분
Instead of vectors, can k-means clustering be used on simple linear sets of data?
RicardoSantos
⋅
2021년 3월 3일 오후 10시 58분
@kakola
, you can use the same set for X, Y arrays to do 1d means, but there would be better methods to achieve that..
RicardoSantos
⋅
2021년 3월 4일 오전 8시 48분
@kakola
, follow up: take a look at the comments in this OS discussion:
kakola
⋅
2021년 3월 4일 오후 2시 41분
@RicardoSantos
, I will try to find a clustering algorithm where N-clusters does not have to be initially provided.
RicardoSantos
⋅
2021년 3월 4일 오후 2시 47분
@kakola
, sry missing link .p
stats.stackexchange.com/questions/40454/determine-different-clusters-of-1d-data-from-database
ruimnetob
⋅
2020년 9월 19일 오후 10시 11분
@RicardoSantos
Olá Ricardo! Esta implementação de clustering por K-Means está funcional? Obrigado!
더보기