acugow {dprep}R Documentation

Gower distance from a vector to a matrix

Description

This function finds out the gower distance between a vector and a matrix

Usage

acugow(x, data, vnom = NULL)

Arguments

x

A Vector of attributes values

data

A matrix dataset

vnom

A vector indicating the columns with nominal attributes in the matrix dataset

Value

matdist

a matrix containing the components of the distance vector from x to each row of data

dist

a vector containing the distances from x to each row of data

Author(s)

Edgar Acuna

See Also

reliefcont

Examples

data(crx)
crx.imp=ce.impute(crx,"knn",nomatr=c(1,4,5,6,7,9,10,12,13),3)
acugow(crx.imp[1,-16],crx.imp[-1,-16],vnom=c(1,4,5,6,7,9,10,12,13))

[Package dprep version 3.1.1 Index]