Cytoscape 2.8.0-alpha1 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.util
Class AbstractScaler

java.lang.Object
  extended by cytoscape.util.AbstractScaler
All Implemented Interfaces:
Scaler

public abstract class AbstractScaler
extends Object
implements Scaler

Used to scale a list of values to [a,b]


Constructor Summary
AbstractScaler()
           
 
Method Summary
 double[] scale(Collection<Double> values, double a, double b)
           
 float[] scale(Collection<Float> values, float a, float b)
           
abstract  double[] scale(double[] values, double a, double b)
           
 float[] scale(float[] values, float a, float b)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractScaler

public AbstractScaler()
Method Detail

scale

public abstract double[] scale(double[] values,
                               double a,
                               double b)
                        throws IllegalArgumentException
Specified by:
scale in interface Scaler
Throws:
IllegalArgumentException

scale

public final double[] scale(Collection<Double> values,
                            double a,
                            double b)
                     throws IllegalArgumentException
Specified by:
scale in interface Scaler
Throws:
IllegalArgumentException

scale

public final float[] scale(float[] values,
                           float a,
                           float b)
                    throws IllegalArgumentException
Specified by:
scale in interface Scaler
Throws:
IllegalArgumentException

scale

public final float[] scale(Collection<Float> values,
                           float a,
                           float b)
                    throws IllegalArgumentException
Specified by:
scale in interface Scaler
Throws:
IllegalArgumentException

www.cytoscape.org