Learn R Programming

DRquality (version 0.2.1)

ZrehenMeasure4All: ZrehenMeasure4All

Description

A generalized version of the Zrehen-measure which defines the neighbourhood with a Gabriel Graph and is therefore not restricted to grid-based projections.

Usage

ZrehenMeasure4All(Data, Projection, width, height, isToroid = FALSE,
isGrid = TRUE, plotGabriel = FALSE)

Value

List with

V$zrehen

the raw zrehen measure

V$normedzrehen

the zrehen measure normed by the number of neighbours

v$neighbourcounter

the number of possible neighbours by which the zrehen measure is normed

Arguments

Data

[1:n,1:d] points in input room with d attributes

Projection

[1:n,1:2] projected points in output room, with index,x,y or index,line,column

width

Numeric: only necessary if toroid

height

Numeric: only necessary if toroid

isToroid

Boolean: are the points toroid?

isGrid

Boolean: is the grid a toroid?

plotGabriel

Boolean: plot the generated GabrielGraph (TRUE) or not (FALSE). Default: plotGabriel=FALSE.

Author

Florian Lerch 07/2015

Examples

Run this code
# \donttest{
if(requireNamespace("FCPS")){
data(Hepta,package="FCPS")
projection=cmdscale(dist(Hepta$Data), k=2)
ZrehenMeasure4All(Hepta$Data,projection)$zrehen
}
# }
# \dontshow{
n=100
Data=cbind(rnorm(100),rnorm(100,2,3))
ZrehenMeasure4All(Data,cbind(runif(n),runif(n)))$zrehen
# }

Run the code above in your browser using DataLab