knnx.index: knnx.index

Description Usage Arguments Details Value Examples

Description

k-Nearest Neighbour Indexes

Usage

1
knnx.index(data, query, k = 1, algorithm = "kd_tree", ...)

Arguments

data

input FLTable with pool space to search for

query

input search FLTable

k

number of neighbours considered.

algorithm

currently only brute is supported

...

additional parameters like dist Flag to get the distances as well.

Details

For each row of the test set, the k nearest (according to Euclidean distance metric) training set vectors are found and indices,distances are returned.

Value

FLMatrix of indices or a list of dist & index if dist FLag is true.

Examples

1
2
3
FLdeepTbl <- FLTable(getTestTableName("ARknnDevSmall"),"obsid","varid","num_val")
FLknnOutput <- knnx.index(FLdeepTbl,FLdeepTbl,k=2)
FLknnOutput

Fuzzy-Logix/AdapteR documentation built on May 6, 2019, 5:07 p.m.