Cytoscape 2.8.0 API

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
clone, equals, finalize, 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

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.