Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4145

Clustering a list of numbers

$
0
0

@Petras_Vestartas wrote:

Hi,

I am trying find a method how to extract a list of numbers from a list that are the most self-similar?
I would like to filter out values that stand out too much from a general list.

From screenshot attached first list would return
0.065, 0.066, 0.067, 0.067, 0.066, 0.066
second
0.049, 0.049, 0.049, 0.049.0.051,0.052

One idea was to use K-Means clustering for the list.
But I am wondering if there is a simple mathematical way to get this?
I do not mind using .net math numeric libraries if needed.

MostCommon.gh (20.7 KB)

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 4145

Trending Articles