search for: distb

Displaying 4 results from an estimated 4 matches for "distb".

Did you mean: dist
2006 Apr 19
3
isoMDS and 0 distances
...morphological variation can be associated with an identical genotype. I've tried replacing the 0's with NA, but the isoMDS appears to stop on the first iteration and the stress does not improve: distA # A dist object with 13695 elements, 4 of which == 0 cmdsA <- cmdscale(distA, k=2) distB <- distA distB[which(distB==0)] <- NA isoA <- isoMDS(distB, cmdsA) initial value 21.835691 final value 21.835691 converged The other approach I've tried is replacing the 0's with small numbers. In this case isoMDS does reduce the stress values. min(distA[which(distA>0)]) [...
2009 Feb 08
2
Strange behavior of C compiled program
...code is strange : Here is my code : --- 8< --- Rprintf("\n XXXX mTraj=%f mClus=%f",mTraj[i+nbId*c],mClustersCenter[j+nbClusters*c]); Rprintf("\nDistA=%d Tmp=%d",dist,tmp); tmp = mTraj[i+nbId* c] - mClustersCenter [j+nbClusters* c]; Rprintf("\nDistB=%d Tmp=%d",dist,tmp); dist += (tmp * tmp); Rprintf("\nDistC=%d Tmp=%d",dist,tmp); --- 8< ---- Herer are the stranges results it gives : XXXX mTraj=1.000000 mClus=3.000000 DistA=0 Tmp=0 DistB=0 Tmp=0 DistC=0 Tmp=1074790400 I ask on a C chat, but no one can answe...
2013 Feb 27
1
best ordination method for binary variables
...previous posts, I noticed that non metrical MDS (via isoMDS or metaMDS) could be a more correct choice. The problem is that, when trying this methods, I immediately get problems due to the identity between several of mycases or the presence of NA. Typical error messages are *"Error in isoMDS(DistB, k = 3) : zero or negative distance between objects 1 and 2"* or *"Error in if (any(autotransform, noshare > 0, wascores) && any(comm < 0)) { : missing value where TRUE/FALSE needed* *In addition: Warning message:* *In Ops.factor(left, right) : < not meaningful for fact...
2010 Jun 02
5
Programmatically counting RSpec tests?
If I have an object `obj` that is a SpecTask, and subsequently invoke it, is there a way to programmatically determine the number of tests that were successful, failed, and pending as a result of running that SpecTask? -- John Feminella Principal Consultant, Distilled Brilliance