Learn R Programming

fclust (version 2.1.1.1)

Hraw: Raw prototypes

Description

Produces prototypes using the original units of measurement of X (useful if the clustering algorithm is run using standardized data).

Usage

Hraw (X, H)

Value

Hraw

Prototypes matrix using the original units of measurement of X

Arguments

X

Matrix or data.frame

H

Prototype matrix

Author

Paolo Giordani, Maria Brigida Ferraro, Alessio Serafini

See Also

Fclust, unemployment

Examples

Run this code
## example n.1 (k-means case)
## unemployment data
data(unemployment)
## fuzzy k-means
unempFKM=FKM(unemployment,k=3,stand=1)
## standardized prototypes
unempFKM$H
## prototypes using the original units of measurement
unempFKM$Hraw=Hraw(unempFKM$X,unempFKM$H)
## example n.2  (k-medoids case)
## unemployment data
data(unemployment)
## fuzzy k-medoids
if (FALSE) {
## It may take more than a few seconds
unempFKM.med=FKM.med(unemployment,k=3,RS=10,stand=1)
## prototypes using the original units of measurement:
## in fuzzy k-medoids one can equivalently use
unempFKM.med$Hraw1=Hraw(unempFKM.med$X,unempFKM.med$H)
unempFKM.med$Hraw2=unempFKM.med$X[unempFKM.med$medoid,]}

Run the code above in your browser using DataLab