icpdist: icpdist

Description Usage Arguments Value Examples

Description

Computes the point distance between to set of 2D points query and data. Each point in query, transformed with par, is linked to a (different) point data. if full=FALSE then only the summarized distances between the transformed and the matched points are returned. Otherwise for each point in query a list is returned with transformed points xy, the index of the "nearest" point in data and the distance.

Usage

1
icpdist(par, query, data, full = FALSE)

Arguments

par

numeric(6): the transformation parameters

query

matrix: positions of 2D points to match in data

data

matrix: positions of 2D points

full

logical: return only summarized distances of full information (default: FALSE)

Value

summarized distances or detailled list

Examples

1
2
3
4
5
n     <- 10
data  <- cbind(runif(n),runif(n))
query <- cbind(runif(3), runif(3))
icpdist(par=c(1,0,0,1,0,0), data=data, query=query)
icpdist(par=c(1,0,0,1,0,0), data=data, query=query, full=TRUE)

SigbertIngress/findWeb documentation built on May 26, 2019, 4:38 p.m.