ZrehenMeasure4All {DRquality}R Documentation

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)

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.

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

Author(s)

Florian Lerch 07/2015

Examples


if(requireNamespace("FCPS")){
data(Hepta,package="FCPS")
projection=cmdscale(dist(Hepta$Data), k=2)
ZrehenMeasure4All(Hepta$Data,projection)$zrehen
}



[Package DRquality version 0.2.1 Index]