Author: pwang
Date: 2011-10-18 10:15:29 -0700 (Tue, 18 Oct 2011)
New Revision: 27214

Modified:
   
csplugins/trunk/ucsd/pwang/jActiveModules31/src/main/java/csplugins/jActiveModules/ZStatistics.java
Log:
Refactored

Modified: 
csplugins/trunk/ucsd/pwang/jActiveModules31/src/main/java/csplugins/jActiveModules/ZStatistics.java
===================================================================
--- 
csplugins/trunk/ucsd/pwang/jActiveModules31/src/main/java/csplugins/jActiveModules/ZStatistics.java
 2011-10-18 15:50:58 UTC (rev 27213)
+++ 
csplugins/trunk/ucsd/pwang/jActiveModules31/src/main/java/csplugins/jActiveModules/ZStatistics.java
 2011-10-18 17:15:29 UTC (rev 27214)
@@ -4,8 +4,9 @@
 
 //imported packages
 import java.io.Serializable;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
-import cytoscape.logger.CyLogger;
 
 /**
  * This code was mostly appropriated from the activeModules C++
@@ -19,6 +20,7 @@
     private double [][] zs;
     private int maxRank, hthsMax, tthsMax, onesMax;
     private int hthsMaxInd, tthsMaxInd, onesMaxInd;
+       private static final Logger logger = 
LoggerFactory.getLogger(ZStatistics.class);
         
     public ZStatistics(int rank){
        //this(rank, 10,50,150);
@@ -115,7 +117,7 @@
            throw new RuntimeException("z-score ("+zScore+") produced an 
f_index (" + f_index + 
                                       ") less than zero.");
        if(f_index > onesMaxInd) {
-           CyLogger.getLogger(ZStatistics.class).warn("The extremely large 
z-score (" + zScore + ") generated an f_index ("+
+           logger.warn("The extremely large z-score (" + zScore + ") generated 
an f_index ("+
                               f_index+") that is too large, so using 
onesMaxInd instead: " + onesMaxInd );
            f_index = onesMaxInd;
        }

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