Author: scooter
Date: 2011-10-22 22:00:19 -0700 (Sat, 22 Oct 2011)
New Revision: 27277

Modified:
   
csplugins/trunk/ucsf/scooter/clusterMaker/src/clusterMaker/algorithms/clusterFilters/DensityFilter.java
Log:
Should be 2*edgecount!


Modified: 
csplugins/trunk/ucsf/scooter/clusterMaker/src/clusterMaker/algorithms/clusterFilters/DensityFilter.java
===================================================================
--- 
csplugins/trunk/ucsf/scooter/clusterMaker/src/clusterMaker/algorithms/clusterFilters/DensityFilter.java
     2011-10-23 04:02:24 UTC (rev 27276)
+++ 
csplugins/trunk/ucsf/scooter/clusterMaker/src/clusterMaker/algorithms/clusterFilters/DensityFilter.java
     2011-10-23 05:00:19 UTC (rev 27277)
@@ -123,7 +123,7 @@
                int nodeCount = indices.length;
 
                // Calculate the density
-               double density = (double)edgeCount/(double)(nodeCount * 
(nodeCount-1));
+               double density = (double)(edgeCount*2)/(double)(nodeCount * 
(nodeCount-1));
                if (density >= minimumDensity)
                        return new NodeCluster(nodeList);
                return null;

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to