|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectskyview.util.Scaler
skyview.util.LinearScaler
public class LinearScaler
Scale an object linearly.
| Constructor Summary | |
|---|---|
LinearScaler()
|
|
LinearScaler(double minVal,
double maxVal,
int minOutput,
int maxOutput)
Provide a scaler with a specified scaling range to a specified range of bytes. |
|
| Method Summary | |
|---|---|
protected void |
prepareScaling(double[] c)
Set up the scaling. |
protected byte |
scale(double val)
Scale a single value |
| Methods inherited from class skyview.util.Scaler |
|---|
getMaxOutput, getMaxVal, getMinOutput, getMinVal, getUseDefault, scaleArray, setMaxVal, setMinMax, setMinVal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LinearScaler()
public LinearScaler(double minVal,
double maxVal,
int minOutput,
int maxOutput)
| Method Detail |
|---|
protected void prepareScaling(double[] c)
prepareScaling in class ScalerThe - array to be scaled.protected final byte scale(double val)
scale in class Scalerval - The value to be scaled.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||