Displaying 1 result from an estimated 1 matches for "readvectorfile".
2001 Nov 01
1
Erratic behaviour of sammon()
...#39;vec2', I get
different results. (SAMMON() is a wrapper function).
This I did on a Linux machine (R version 1.3.1):
> dst <- ReadDistFile("PA.lnk")
Loading required package: mva
> vec1 <- MDS(dst, 3)
> WriteVectorFile(vec1, "outfile")
> vec2 <- ReadVectorFile("outfile")
> cor(vec1[,1], vec2[,1])
[1] 1
> cor(vec1[,2], vec2[,2])
[1] 1
> cor(vec1[,3], vec2[,3])
[1] 1
> v1 <- SAMMON(dst, 3, y=vec1)
Loading required package: MASS
Initial stress : 0.20243
stress after 10 iters: 0.11869, magic = 0.018
stress after 2...