grnn.distance {GRNNs} | R Documentation |
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
data("physg")
physg.train<-physg[1:10,]
physg.test<-physg[11:30,]
distance<-grnn.distance(physg.test,physg.train,"bray")
[Package GRNNs version 0.1.0 Index]