getClassification.diaMeasure: Compute Classifications

Description Usage Arguments Examples

View source: R/measures.R

Description

Apply classification methods related to the Diatech project.

Usage

1
2
3
## S3 method for class 'diaMeasure'
getClassification(measure, type = c("classic"), method,
  ids, ns, nb, ...)

Arguments

measure

object to pass to other methods.

type

type of classification requried.

method

classification method to be used: Med, MinMwMax, MedMw.

ids

ids from the measure for which the classification method must be applied.

ns

integer vector indicating in how many groups must the classification happen.

nb

optional neighbourhood object returned from 'generateMaps'.

...

unused

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(diaMeasures)
data(bourciezDiaData)

set <- bourciezDiaData$lonlat
labels <- set[c('id', 'location')]
measure <- getMeasures(set, 'euclidean')

result <- getClassification(measure, 'classic', 'Med', '107', 2:4)

result2 <- getClassification(measure, 'classic', 'Med', '107', 2:4, bourciezDiaData$nb)

usobiaga/diatechServer documentation built on May 3, 2019, 2:38 p.m.