Learn R Programming

FRESA.CAD (version 3.3.0)

signatureDistance: Distance to the signature template

Description

This function returns a normalized distance to the signature template

Usage

signatureDistance(
	              template,
	              data=NULL,
	              method = c("pearson","spearman","kendall","RSS","MAN")
	)

Arguments

template

A list with a template matrix of the signature described with quantiles = [0.025,0.25,0.5,0.75,0.975]

data

A data frame that will be used to compute the distance

method

The distance method.

Value

result

the distance to the template

Details

The distance to the template: "pearson","spearman" and "kendall" distances are computed using the correlation function i.e. 1-r. "RSS" distance is the root sum square distance "MAN" Manhattan. The standardized L^1 distance