Displaying 1 result from an estimated 1 matches for "hauptprogramm".
2002 Jan 25
1
Fw: Summary for Distance matrix by cosine?
...print(c)
return (c)
}
# und somit ist der Cosinus identisch mit dem Skalarprodukt
# and thus the Cosine is identical to the inner product
distmatrix_cos <- function(c) {
d <- crossprod(t(c))
row.names(d) <- row.names(c)
colnames(d) <- row.names(c)
return(d)
}
# Hauptprogramm/ Main program
library(mva)
tab <- read.table("C:/Programme/Perl/index/tabelle", header=TRUE)
n <- normalize(tab)
dista <- distmatrix_cos(n)
distanz <- as.dist(dista)
etc.
----- Original Message -----
From: Petra Steiner
To: r-help at lists.r-project.org
Sent: Wednesday, Jan...