hs_type: Perform clustering of spectra using partitioning around...

Description Usage Arguments Examples

View source: R/hs_type.R

Description

Number of clusters is optimized based on Silhouette index.

Usage

1
hs_type(hs.x, PCA.var = NULL, ...)

Arguments

hs.x

hyperSpec object

PCA.var

Variance threshold for PCA preprocessing prior to clustering. Defaults to NULL which means that no PCA will be performed.

...

Parameters to pass on to pam().

Examples

1
2
3
4
5
6
7
8
9
## Short example

# Load hyperSpec object
data("hs_example")

# Convert to MassSpectrum object
hs.x.proc <- hs_preprocess(hs_example)

hclust_obj <- hs_type(hs.x.proc, PCA.var = 0.8)

CMET-UGent/MicroRaman documentation built on July 25, 2020, 6:20 p.m.