ucred_fv | R Documentation |
Sliding-window similarity search using Euclidean Distance. This implementation of the UCR Suite command line utility, takes a data file as input and an R numeric vector for the query.
ucred_fv(data, query)
data |
character; path to data file |
query |
numeric vector containing query |
a ucred object. A list with the following elements
location: The starting location of the nearest neighbor of the given query, of size length(query)
, in the data. Note that location starts from 1.
distance: The Euclidean Distance between the nearest neighbor and the query.
#locate example data file
dataf <- system.file("extdata/col_sc.txt", package="rucrdtw")
#read example query file into vector
query <- scan(system.file("extdata/mid_sc.txt", package="rucrdtw"))
#run query
ucred_fv(dataf, query)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.