This function returns a normalized distance to the signature template
signatureDistance(
template,
data=NULL,
method = c("pearson","spearman","kendall","RSS","MAN","NB"),
fwts=NULL
)
the distance to the 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]
A data frame that will be used to compute the distance
The distance method.
A numeric vector defining the weight of each feature
Jose G. Tamez-Pena
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