Displaying 7 results from an estimated 7 matches for "distancevector".
2011 Aug 08
3
Distance between a vector and matrix rows
I am trying to find the distance between a vector and each row of a
dataframe. I am using the function "distancevector" in the package "hopach"
as follows:
mydata<-as.data.frame(matrix(c(1,1,1,1,0,1,1,1,1,0),nrow=2))
V1 V2 V3 V4 V5
1 1 1 0 1 1
2 1 1 1 1 0
vec <- c(1,1,1,1,1)
d2<-distancevector(mydata,vec,d="euclid")
The Euclidean distance between the two rows of the d...
2006 Nov 30
3
newbie: new_data_frame <- selected set of rows
...en 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( dbfile[i,])
#prints top five hits just for debugging
What I want to do:
1) create a small top_five frame
sadly this does not work:
for(i in dist...
2008 Aug 29
5
[LLVMdev] Dependence Analysis [was: Flow-Sensitive AA]
...this as an analysis and make following changes.
- Rename LoopMemDepAnalysis as DataDependenceAnalysis. Various
transformation passes will use this interface to access data
dependence info. This is an external interface. Put this in include/
llvm/Analysis.
- Make DirectionVector (and later on DistanceVector) independent
interface and put them in ADT.
- Put various tests, DeltaTest, in lib/Analysis folder. The
transformation pass does not need to see these details.
- DataDependenceAnalysis will select various dependence tests based on
user selection. We want a interface similar to AnalysisGroup...
2008 Sep 02
0
[LLVMdev] Dependence Analysis [was: Flow-Sensitive AA]
...ollowing changes.
>
> - Rename LoopMemDepAnalysis as DataDependenceAnalysis. Various
> transformation passes will use this interface to access data
> dependence info. This is an external interface. Put this in include/
> llvm/Analysis.
> - Make DirectionVector (and later on DistanceVector) independent
> interface and put them in ADT.
> - Put various tests, DeltaTest, in lib/Analysis folder. The
> transformation pass does not need to see these details.
> - DataDependenceAnalysis will select various dependence tests based on
> user selection. We want a interface...
2006 Nov 30
0
new_data_frame <- selected set of rows
...en 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( dbfile[i,])
#prints top five hits just for debugging
What I want to do:
1) create a small top_five frame
sadly this does not work:
for(i in dist...
2008 Aug 21
0
[LLVMdev] Dependence Analysis [was: Flow-Sensitive AA]
> Wojtek,
>
> Please see David's message below. Have you or can you check in your
> code, perhaps as a project for now? That will allow us to start
> looking at it and perhaps collaborating on it.
Sure. For now, I am posting it as an attachment, because it does not
build against the current SVN version. It is really basic (for example,
it cannot produce distance vectors,
2008 Aug 20
4
[LLVMdev] Dependence Analysis [was: Flow-Sensitive AA]
Wojtek,
Please see David's message below. Have you or can you check in your
code, perhaps as a project for now? That will allow us to start
looking at it and perhaps collaborating on it.
--Vikram
Associate Professor, Computer Science
University of Illinois at Urbana-Champaign
http://llvm.org/~vadve
On Aug 20, 2008, at 3:05 PM, David Greene wrote:
> On Wednesday 20 August 2008