ClusteringDifferences.AbstractClustering
— TypeAbstractClustering
Supertype for clusterings.
ClusteringDifferences.AbstractClusteringDifference
— TypeAbstractClusteringDifference
Supertype for clustering differences.
ClusteringDifferences.HierarchicalClustering
— TypeHierarchicalClustering{Tc<:Integer,Tw<:Real} <: AbstractClustering
Hierarchical clustering.
ClusteringDifferences.PartitionalClustering
— TypePartitionalClustering{Tc<:Integer,Tw<:Real,Ty<:Real,Tm<:Real} <: AbstractClustering
Partitional clustering.
ClusteringDifferences.PartitionalClusteringDifference
— TypePartitionalClusteringDifference <: AbstractClusteringDifference
Difference between two partitional clusterings.
Base.axes
— Methodaxes(a::AbstractClusteringDifference[, d])
Access the feature and instance identifiers differences. Optionally, specify dimension d
to get the identifier difference of that dimension only.
Base.axes
— Methodaxes(a::AbstractClustering[, d])
Access the feature and instance identifiers. Optionally, specify dimension d
to get the identifiers of that dimension only.
Base.instances
— Methodinstances(a::AbstractClusteringDifference)
Access the instance identifiers difference.
Base.instances
— Methodinstances(a::AbstractClustering)
Access the instance identifiers.
ClusteringDifferences.assignments
— Methodassignments(a::PartitionalClusteringDifference)
Access the assignments difference.
ClusteringDifferences.assignments
— Methodassignments(a::PartitionalClustering)
Access the assignments.
ClusteringDifferences.backwarddiff
— Functionbackwarddiff(a::AbstractVector{<:AbstractClustering}, i::Int[, h::Int=1])
Compute the backward difference of the clustering at index i
with step size h
.
ClusteringDifferences.constraints
— Methodconstraints(a::AbstractClusteringDifference)
Access the contraints difference.
ClusteringDifferences.constraints
— Methodconstraints(a::AbstractClustering)
Access the contraints.
ClusteringDifferences.features
— Methodfeatures(a::AbstractClusteringDifference)
Access the feature identifiers difference.
ClusteringDifferences.features
— Methodfeatures(a::AbstractClustering)
Access the feature identifiers.
ClusteringDifferences.forwarddiff
— Functionforwarddiff(a::AbstractVector{<:AbstractClustering}, i::Int[, h::Int=1])
Compute the forward difference of the clustering at index i
with step size h
.
ClusteringDifferences.kmeans
— Methodkmeans(X::AbstractMatrix{<:Real}, r::AbstractVector{Int},
c::AbstractVector{Int}, μ::AbstractMatrix{<:Real}; <keyword arguments>)
Cluster the data X
with the $k$-means algorithm.
Keyword arguments
maxiter::Int=256
: the number of maximum iterations.dist::SemiMetric=SqEuclidean()
: the distance function.ϵ::AbstractFloat=1.0e-6
: the absolute tolerance for convergence.
ClusteringDifferences.kmeans
— Methodkmeans(X::AbstractMatrix{<:Real}, μ::AbstractMatrix{<:Real}; <keyword arguments>)
Like kmeans
, but automatically generate r
and c
according to the size of X
.
ClusteringDifferences.parameters
— Methodparameters(c::AbstractClusteringDifference)
Access the parameters difference.
ClusteringDifferences.parameters
— Methodparameters(c::PartitionalClustering)
Access the parameters.
ClusteringDifferences.weights
— Methodweights(a::AbstractClusteringDifference)
Access the weights difference.
ClusteringDifferences.weights
— Methodweights(a::AbstractClustering)
Access the weights.