com.penguinwerks.jodene.data
Class Scaler

java.lang.Object
  extended bycom.penguinwerks.jodene.data.Scaler
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ClassificationScaler, FactorScaler, RangeScaler

public abstract class Scaler
extends java.lang.Object
implements java.io.Serializable

An abstract scaler. Scalers scale raw values to appropriate values. Concrete implementations of scaler will apply some kind of scaling techniuqe - i.e. dividing by a factor or taking the logarithm, to place a value in an acceptable range. Scalers can be chained. An example would be a scaler that takes the logarithm of a value and then uses another sclaer to divide by a factor of 2 so the resulting value is between 0.0 and 1.0.

Author:
Paul Hoehne
See Also:
Serialized Form

Constructor Summary
Scaler()
           
 
Method Summary
 void addScaler(Scaler scaler)
          Chaines another scaler to this scaler.
abstract  double scale(double input)
          The abstract scaling method to implement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scaler

public Scaler()
Method Detail

scale

public abstract double scale(double input)
The abstract scaling method to implement.

Parameters:
input - The value to scale
Returns:
The scaled value.

addScaler

public void addScaler(Scaler scaler)
Chaines another scaler to this scaler.

Parameters:
scaler - Another scaler.