|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.penguinwerks.jodene.data.Scaler
com.penguinwerks.jodene.data.FactorScaler
A factor scaler is an instance of scaler that divides the input value by the given factor. For exmaple, a factor of 3, would divide the input value by 3. A common use of the FactorScaler would be to divide the raw values so they appear in a given range - 0.00 to 1.00. The temperature, in Celsius might be divided by a scale of 40.00 so that temperature readings might range between -1.0 and 1.0.
| Constructor Summary | |
FactorScaler()
Constructors - empty contructor; |
|
FactorScaler(double factor)
Constructor that takes a factor as an argument. |
|
| Method Summary | |
double |
getFactor()
The factor to use. |
double |
scale(double input)
Scales the input value, dividing by the given factor. |
void |
setFactor(double factor)
The factor to use. |
| Methods inherited from class com.penguinwerks.jodene.data.Scaler |
addScaler |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FactorScaler()
public FactorScaler(double factor)
factor - The factor for this scaler.| Method Detail |
public double getFactor()
public void setFactor(double factor)
factor - The factor to set.public double scale(double input)
scale in class Scalerinput - The raw input value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||