Displaying 2 results from an estimated 2 matches for "scaled_db".
2006 Nov 30
3
newbie: new_data_frame <- selected set of rows
...een a
query vector and each of the rows of my_dataframe)
What I do:
after scaling data my_dataframe I calculate distances.
order them then extract top five hits
my_dataframe <- read.table("myDB.csv", header=F,
dec=".", sep=";",
row.names=1)
#reads the whole file
scaled_DB <- scale(my_dataframe, center=FALSE)
#scales the values
require(hopach)
#checks necessary R package
distances <- order(distancevector(scaled_DB,
scaled_DB['query',], d="euclid"))
#calculates distances and orders the results from
lowest
for(i in distances[1:5]) print( dbfi...
2006 Nov 30
0
new_data_frame <- selected set of rows
...een a query vector and each of the rows of my_dataframe)
What I do:
after scaling data my_dataframe I calculate distances. order them then extract top five hits
my_dataframe <- read.table("myDB.csv", header=F, dec=".", sep=";",
row.names=1)
#reads the whole file
scaled_DB <- scale(my_dataframe, center=FALSE)
#scales the values
require(hopach)
#checks necessary R package
distances <- order(distancevector(scaled_DB, scaled_DB['query',], d="euclid"))
#calculates distances and orders the results from lowest
for(i in distances[1:5]) print( dbfi...