Author: scooter
Date: 2010-12-02 21:38:34 -0800 (Thu, 02 Dec 2010)
New Revision: 23083

Modified:
   
csplugins/trunk/ucsf/scooter/clusterMaker/src/clusterMaker/algorithms/edgeConverters/SCPSConverter.java
Log:
Added Leonard's code


Modified: 
csplugins/trunk/ucsf/scooter/clusterMaker/src/clusterMaker/algorithms/edgeConverters/SCPSConverter.java
===================================================================
--- 
csplugins/trunk/ucsf/scooter/clusterMaker/src/clusterMaker/algorithms/edgeConverters/SCPSConverter.java
     2010-12-03 03:06:05 UTC (rev 23082)
+++ 
csplugins/trunk/ucsf/scooter/clusterMaker/src/clusterMaker/algorithms/edgeConverters/SCPSConverter.java
     2010-12-03 05:38:34 UTC (rev 23083)
@@ -32,6 +32,8 @@
  */
 package clusterMaker.algorithms.edgeConverters;
 
+import java.lang.Math;
+
 public class SCPSConverter implements EdgeWeightConverter {
 
        /**
@@ -58,6 +60,11 @@
         * @return the converted edge weight
         */
        public double convert(double weight, double minValue, double maxValue) {
+               double w = 6.1302;
+               double b = 1.2112;
+           
+               weight = 1/(1 + Math.exp(w*Math.log10(weight) + b));
+
                return weight;
        }
 }

-- 
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