From: <lfr...@us...> - 2012-02-29 16:57:57
|
Revision: 10515 http://genoviz.svn.sourceforge.net/genoviz/?rev=10515&view=rev Author: lfrohman Date: 2012-02-29 16:57:46 +0000 (Wed, 29 Feb 2012) Log Message: ----------- misspelled class Modified Paths: -------------- trunk/genometryImpl/src/com/affymetrix/genometryImpl/operator/InverseLogTransform.java trunk/genometryImpl/src/com/affymetrix/genometryImpl/operator/LogTransform.java Added Paths: ----------- trunk/genometryImpl/src/com/affymetrix/genometryImpl/operator/AbstractLogTransform.java Removed Paths: ------------- trunk/genometryImpl/src/com/affymetrix/genometryImpl/operator/AbsractLogTransform.java Deleted: trunk/genometryImpl/src/com/affymetrix/genometryImpl/operator/AbsractLogTransform.java =================================================================== --- trunk/genometryImpl/src/com/affymetrix/genometryImpl/operator/AbsractLogTransform.java 2012-02-29 16:55:43 UTC (rev 10514) +++ trunk/genometryImpl/src/com/affymetrix/genometryImpl/operator/AbsractLogTransform.java 2012-02-29 16:57:46 UTC (rev 10515) @@ -1,74 +0,0 @@ - -package com.affymetrix.genometryImpl.operator; - -import java.text.DecimalFormat; -import java.util.HashMap; -import java.util.Map; - -/** - * - * @author lfrohman - */ -public abstract class AbsractLogTransform extends AbstractFloatTransformer implements Operator{ - - protected static final DecimalFormat DF = new DecimalFormat("#,##0.##"); - double base; - final String paramPrompt; - final String name; - final boolean parameterized; - - public AbsractLogTransform(String nm) { - super(); - paramPrompt = "Base"; - name = nm; - parameterized = true; - } - public AbsractLogTransform(Double base) { - super(); - this.base = base; - paramPrompt = null; - name = getBaseName(); - parameterized = false; - } - - protected abstract String getBaseName(); - - @Override - public Map<String, Class<?>> getParameters() { - if (paramPrompt == null) { - return null; - } - Map<String, Class<?>> parameters = new HashMap<String, Class<?>>(); - parameters.put(paramPrompt, String.class); - return parameters; - } - - @Override - public boolean setParameters(Map<String, Object> parms) { - if (paramPrompt != null && parms.size() == 1 && parms.get(paramPrompt) instanceof String) { - setParameter((String)parms.get(paramPrompt)); - return true; - } - return false; - } - - protected boolean setParameter(String s) { - if (parameterized) { - if ("e".equals(s.trim().toLowerCase())) { - base = Math.E; - } - else { - try { - base = Double.parseDouble(s); - if (base <= 0) { - return false; - } - } - catch (Exception x) { - return false; - } - } - } - return true; - } -} Added: trunk/genometryImpl/src/com/affymetrix/genometryImpl/operator/AbstractLogTransform.java =================================================================== --- trunk/genometryImpl/src/com/affymetrix/genometryImpl/operator/AbstractLogTransform.java (rev 0) +++ trunk/genometryImpl/src/com/affymetrix/genometryImpl/operator/AbstractLogTransform.java 2012-02-29 16:57:46 UTC (rev 10515) @@ -0,0 +1,74 @@ + +package com.affymetrix.genometryImpl.operator; + +import java.text.DecimalFormat; +import java.util.HashMap; +import java.util.Map; + +/** + * + * @author lfrohman + */ +public abstract class AbstractLogTransform extends AbstractFloatTransformer implements Operator{ + + protected static final DecimalFormat DF = new DecimalFormat("#,##0.##"); + double base; + final String paramPrompt; + final String name; + final boolean parameterized; + + public AbstractLogTransform(String nm) { + super(); + paramPrompt = "Base"; + name = nm; + parameterized = true; + } + public AbstractLogTransform(Double base) { + super(); + this.base = base; + paramPrompt = null; + name = getBaseName(); + parameterized = false; + } + + protected abstract String getBaseName(); + + @Override + public Map<String, Class<?>> getParameters() { + if (paramPrompt == null) { + return null; + } + Map<String, Class<?>> parameters = new HashMap<String, Class<?>>(); + parameters.put(paramPrompt, String.class); + return parameters; + } + + @Override + public boolean setParameters(Map<String, Object> parms) { + if (paramPrompt != null && parms.size() == 1 && parms.get(paramPrompt) instanceof String) { + setParameter((String)parms.get(paramPrompt)); + return true; + } + return false; + } + + protected boolean setParameter(String s) { + if (parameterized) { + if ("e".equals(s.trim().toLowerCase())) { + base = Math.E; + } + else { + try { + base = Double.parseDouble(s); + if (base <= 0) { + return false; + } + } + catch (Exception x) { + return false; + } + } + } + return true; + } +} Modified: trunk/genometryImpl/src/com/affymetrix/genometryImpl/operator/InverseLogTransform.java =================================================================== --- trunk/genometryImpl/src/com/affymetrix/genometryImpl/operator/InverseLogTransform.java 2012-02-29 16:55:43 UTC (rev 10514) +++ trunk/genometryImpl/src/com/affymetrix/genometryImpl/operator/InverseLogTransform.java 2012-02-29 16:57:46 UTC (rev 10515) @@ -5,7 +5,7 @@ * * @author auser */ -public class InverseLogTransform extends AbsractLogTransform implements Operator{ +public class InverseLogTransform extends AbstractLogTransform implements Operator{ public InverseLogTransform(){ super("Inverse Log"); Modified: trunk/genometryImpl/src/com/affymetrix/genometryImpl/operator/LogTransform.java =================================================================== --- trunk/genometryImpl/src/com/affymetrix/genometryImpl/operator/LogTransform.java 2012-02-29 16:55:43 UTC (rev 10514) +++ trunk/genometryImpl/src/com/affymetrix/genometryImpl/operator/LogTransform.java 2012-02-29 16:57:46 UTC (rev 10515) @@ -1,7 +1,7 @@ package com.affymetrix.genometryImpl.operator; -public final class LogTransform extends AbsractLogTransform implements Operator{ +public final class LogTransform extends AbstractLogTransform implements Operator{ double LN_BASE; float LOG_1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |