Displaying 1 result from an estimated 1 matches for "distanzmatrix".
Did you mean:
distancematrix
2002 Jan 25
1
Fw: Summary for Distance matrix by cosine?
...wever, as far as I know the cosine is not the
same as the Pearson correlation (only in special cases).
b. Reid Huntsinger's hint was very useful, however I had to transpose the
matrix first, for I want to calculate the distance of the _rows_.
Regards,
Petra Steiner
#Funktion: Berechnung der Distanzmatrix mit dem Kosinus als Abstandsmass
library(Matrix)
normalize <- function(ma) {
# zunaechst werden die Zeilen der Matrix normalisiert
nreihe <- nrow(ma)
nspalte <- ncol(ma)
print(nspalte)
c <- matrix(NA, nreihe, nspalte)
row.names(c) <- row.names(ma)
colnames(c) <...