|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vizzini.math.AbstractScaler
public abstract class AbstractScaler
Provides base functionality to scale numbers between two ranges.
| Constructor Summary | |
|---|---|
AbstractScaler()
Construct this object. |
|
AbstractScaler(double minInput,
double maxInput,
double minOutput,
double maxOutput)
Construct this object with the given parameters. |
|
| Method Summary | |
|---|---|
Properties |
getConfiguration(String prefix)
Return the configuration of this object. |
double |
getMaxInput()
Set the maximum expected input value. |
double |
getMaxOutput()
Set the maximum expected output value. |
double |
getMinInput()
Set the minimum expected input value. |
double |
getMinOutput()
Set the minimum expected output value. |
double[] |
scale(double[] inputs)
Scale the given inputs. |
double[] |
scale(double[] inputs,
double[] outputs)
Scale the given inputs. |
void |
setMaxInput(double max)
Set the maximum expected input value. |
void |
setMaxOutput(double max)
Set the maximum expected output value. |
void |
setMinInput(double min)
Set the minimum expected input value. |
void |
setMinOutput(double min)
Set the minimum expected output value. |
String |
toString()
Return a string representation of this object. |
double[] |
unscale(double[] outputs)
Unscale the given outputs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.vizzini.math.IScaler |
|---|
scale, unscale |
| Constructor Detail |
|---|
public AbstractScaler()
public AbstractScaler(double minInput,
double maxInput,
double minOutput,
double maxOutput)
minInput - Minimum expected input.maxInput - Maximum expected input.minOutput - Minimum expected output.maxOutput - Maximum expected output.| Method Detail |
|---|
public Properties getConfiguration(String prefix)
prefix - Property name prefix.public double getMaxInput()
getMaxInput in interface IScalerpublic double getMaxOutput()
getMaxOutput in interface IScalerpublic double getMinInput()
getMinInput in interface IScalerpublic double getMinOutput()
getMinOutput in interface IScalerpublic double[] scale(double[] inputs)
scale in interface IScaler
public double[] scale(double[] inputs,
double[] outputs)
scale in interface IScalerpublic void setMaxInput(double max)
setMaxInput in interface IScalerpublic void setMaxOutput(double max)
setMaxOutput in interface IScalerpublic void setMinInput(double min)
setMinInput in interface IScalerpublic void setMinOutput(double min)
setMinOutput in interface IScalerpublic String toString()
toString in interface IScalertoString in class Objectpublic double[] unscale(double[] outputs)
unscale in interface IScaler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |