|
||||||||||
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 IScaler
public double getMaxOutput()
getMaxOutput
in interface IScaler
public double getMinInput()
getMinInput
in interface IScaler
public double getMinOutput()
getMinOutput
in interface IScaler
public double[] scale(double[] inputs)
scale
in interface IScaler
public double[] scale(double[] inputs, double[] outputs)
scale
in interface IScaler
public void setMaxInput(double max)
setMaxInput
in interface IScaler
public void setMaxOutput(double max)
setMaxOutput
in interface IScaler
public void setMinInput(double min)
setMinInput
in interface IScaler
public void setMinOutput(double min)
setMinOutput
in interface IScaler
public String toString()
toString
in interface IScaler
toString
in class Object
public 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 |