[R-sig-phylo] issue with cophenetic.phylo()

2012-12-10 Thread Kelly Burkett
From: Klaus Schliep [klaus.schl...@gmail.com] Sent: December 7, 2012 5:16 PM To: Kelly Burkett Cc: r-sig-phylo@r-project.org Subject: Re: [R-sig-phylo] issue with cophenetic.phylo() Hi Kelly, where is the problem? This happens if you work with floating point numbers

[R-sig-phylo] issue with cophenetic.phylo()

2012-12-07 Thread Kelly Burkett
Hi Everyone, I have been using the cophenetic.phylo() function and I have been having some issues with pairs of tips having distances that are different than what I would expect. The following code illustrates the issue (I have set the seed in order to reproduce these results). I generate a tree

Re: [R-sig-phylo] issue with cophenetic.phylo()

2012-12-07 Thread Klaus Schliep
Hi Kelly, where is the problem? This happens if you work with floating point numbers. There is a nice link on the developer.r-project on the topic www.validlab.com/goldberg/paper.pdf The value is on my machine actually the same as .Machine$double.eps [1] 2.220446e-16 which is the smallest