Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
aitk
master
Aitk
AbstractOptimizer
Clustering
Cluster
KMeans
GreedyRandomOptimizer
HillClimbingOptimizer
NelderMeadOptimizer
RBF
BaseTrainer
GaussianFunction
GreedyRandomTrainer
HillClimbingTrainer
Network
SimulatedAnnealingTrainer
SimulatedAnnealingOptimizer
Vector
Built with Crystal 1.10.0
2023-12-06 15:16:01 UTC
class
Aitk::
Clustering::
Cluster
Aitk::Clustering::Cluster
Reference
Object
Defined in:
aitk/clustering/kmeans.cr
Constructors
.new
(centroid)
Instance Method Summary
#add
(vector)
#distance
(vector)
#recalculate_centroid
#vectors
: Array(Array(Float64 | Int32))
Constructor Detail
def self.
new
(centroid)
#
[
View source
]
Instance Method Detail
def
add
(vector)
#
[
View source
]
def
distance
(vector)
#
[
View source
]
def
recalculate_centroid
#
[
View source
]
def
vectors
: Array(Array(Float64 | Int32))
#
[
View source
]