Learning fuzzy models
#
FuzzyLogic.fuzzy_cmeans
— Function
fuzzy_cmeans(
X::Array{T<:Real, 2},
N::Int64;
m,
maxiter,
tol
) -> Tuple{Any, Any}
Performs fuzzy clustering on th data X
using N
clusters.
Input
-
X
— matrix of data, each column is a data point -
N
— number of clusters used.
Keyword argumes
-
m
— exponent of the fuzzy membership function, default2.0
-
maxiter
— maximum number of iterations, default100
-
tol
— absolute error for stopping condition. Stop if , where is the cost function value at the :th iteration.
Output
-
C
— matrix of centers, each column is the center of a cluster. -
U
— matrix of membership degrees, `Uᵢⱼtells has the membership degree of the
jth point to the
i``th cluster.