Learn R Programming

GRNNs (version 0.1.0)

grnn.distance: grnn distance

Description

grnn distance

Usage

grnn.distance(x, y, fun)

Arguments

x

The dataframe of training predictor dataset

y

The dataframe of training response variables

fun

The distance function

Value

The matrix of distance between a and b

Examples

Run this code
# NOT RUN {
data("physg")
physg.train<-physg[1:10,]
physg.test<-physg[11:30,]
distance<-grnn.distance(physg.test,physg.train,"bray")
# }

Run the code above in your browser using DataLab