Load LSH Data

Share:

Description

Load the LSH index and data. If many queries are going to be performed it is advantageous to load this object first and then hand it to eiQuery via the lshData parameter for each query.

If the data needs to be freed you can call the freeLSHData function.

Usage

1
loadLSHData(r, d, W = NA, M = NA, L = NA, K = NA, T = NA, dir = ".", matrixFile = NULL)

Arguments

r

The number of references used to build the database you wish to query against.

d

The number of dimensions used to build the database you wish to query against.

W

See eiQuery

M

See eiQuery

L

See eiQuery

K

See eiQuery

T

See eiQuery

dir

The directory where the "data" directory lives. Defaults to the current directory.

matrixFile

The path to the matrix file. If not specified it will look for it in the default spot.

Value

Returns a pointer to the allocated data. This should only be passed to other functions with an lshData parameter, such as eiQuery

Author(s)

Kevin Horan

See Also

freeLSHData eiQuery

Examples

1
2
3
4
5
6
7
	## Not run: 
		lshData = loadLSHData(r,d)
		eiQuery(r,d,refIddb,c("650002","650003"), format="name",K=15,lshData=lshData)
		eiQuery(r,d,refIddb,c("650004","650005"), format="name",K=15,lshData=lshData)
		freeLSHData(lshData)
	
## End(Not run)