FCM.new: Running the improved Fuzzy Cluster Method (FCMm) by...

Description Usage Arguments Value References See Also Examples

View source: R/FCMm.R

Description

An improved version of Fuzzy Cluster Method (FCM) for water spectra data sets.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
FCM.new(
  FDlist,
  K,
  sort.pos = length(FDlist$wv),
  sort.decreasing = FALSE,
  plot.jitter = TRUE,
  fast.mode = FALSE,
  do.stand = TRUE,
  stand = NULL,
  ...
)

Arguments

FDlist

A list from function FuzzifierDetermination

K

Number, cluster number

sort.pos

The position to sort the cluster number. Default as the end position of the input training matrix. It can be NULL if there is no need to re-sort the cluster index.

sort.decreasing

Default as FALSE which means the sort are assigned from small values to large values.

plot.jitter

Logical, choose to plot jitter plot using ggplot2 functions

fast.mode

Logical, FALSE (default)

do.stand

Whether to use standarized data for FCM. Default as TRUE

stand

Deprecated; Now stand = !do.stand

...

Parameters pass to fcm

Value

A list of FCM:

References

See Also

Other Fuzzy cluster functions: FuzzifierDetermination(), apply_FCM_m(), apply_to_image(), cal_memb(), generate_param(), plot_spec_from_df()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(FCMm) 
library(ggplot2) 
library(magrittr)
library(stringr)
data("Nechad2015")
x <- Nechad2015[,3:11]
wv <- gsub("X","",names(x)) %>% as.numeric
w <- sample(1:nrow(x), 100) 
x <- x[w, ]
names(x) <- wv
nb = 4 # Obtained from the vignette "Cluster a new dataset by FCMm"
FD <- FuzzifierDetermination(x, wv, stand=FALSE)
result <- FCM.new(FD, nb, fast.mode = TRUE)

bishun945/FCMm documentation built on Oct. 15, 2021, 6:43 p.m.