findMax: Calculate Distance Between given Attribute Values by...

Description Usage Arguments Details Value References Examples

Description

Takes in two lists Ai and Aj, representing values of two attributes, two values x and y from Ai. Quantitative attributes are accepted only after descretization. Calculates distance between x and y for Aj with respect to Ai.

Usage

1
findMax(Ai, Aj, x, y)

Arguments

Ai

A list consisting values of a selected attribute

Aj

A list consisting values of another selected attribute

x

Value from Ai

y

Another value from Ai

Details

findMax is the implementation of find_max() function proposed by Ahmad & Dey (2007). See Ahmad & Dey (2007) for more datails.

Value

distance between x and y for Aj with respect to Ai.

References

Ahmad, A., & Dey, L. (2007). A k-mean clustering algorithm for mixed numeric and categorical data. Data & Knowledge Engineering, 63(2), 503-527.

Examples

1
2
3
4
5
6
7
Attrib_i <- c("A","B","A","C")
Attrib_j <- c("Q","Q","R","Q")
xVal <- "A"
yVal <- "B"
QualiVars <- data.frame(Qlvar1 = c("A","B","A","C"), Qlvar2 = c("Q","Q","R","Q"))
library(dplyr)
distBetXY <- findMax(Attrib_i,Attrib_j,xVal,yVal)

DisimForMixed documentation built on May 1, 2019, 9:25 p.m.