signatureDistance {FRESA.CAD} | R Documentation |
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","NB"),
fwts=NULL
)
Arguments
template |
A list with a template matrix of the signature described with quantiles = [0.025,0.100,0.159,0.250,0.500,0.750,0.841,0.900,0.975] |
data |
A data frame that will be used to compute the distance |
method |
The distance method. |
fwts |
A numeric vector defining the weight of each feature |
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 normalized root sum square distance "MAN" Manhattan. The standardized L^1 distance "NB" Weighted Naive-Bayes distance
Value
result |
the distance to the template |
Author(s)
Jose G. Tamez-Pena
[Package FRESA.CAD version 3.4.8 Index]