Last active
August 29, 2015 14:23
-
-
Save groz/1e9492a882842f0da5e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Назовем набор кортежей целых чисел кластером | |
Входные данные алгоритма: один кластер | |
Выходные данные: разбиение входного кластера на непересекающиеся подкластеры | |
*/ | |
abstract class Clusterer { | |
type V = Vector[Double] | |
type Cluster = Seq[V] | |
def clusterize(input: Cluster): Set[Cluster] | |
} | |
// https://en.wikipedia.org/wiki/K-means_clustering | |
class KMeansClusterer extends Clusterer { | |
def clusterize(input: Cluster): Set[Cluster] = ??? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment