|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.penguinwerks.jodene.data.Scaler
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.
| 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 |
public Scaler()
| Method Detail |
public abstract double scale(double input)
input - The value to scale
public void addScaler(Scaler scaler)
scaler - Another scaler.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||