|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectskyview.util.Scaler
skyview.util.HistScaler
public class HistScaler
Scale an object linearly.
| Constructor Summary | |
|---|---|
HistScaler()
Provide default scaler that positive values will scale the array logarithmically between 0-255. |
|
HistScaler(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)
Get ready for scaling in this particular instance. |
protected byte |
scale(double val)
Scale a single number. |
protected void |
setMinMax(double[] old)
|
| Methods inherited from class skyview.util.Scaler |
|---|
getMaxOutput, getMaxVal, getMinOutput, getMinVal, getUseDefault, scaleArray, setMaxVal, setMinVal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HistScaler()
public HistScaler(double minVal,
double maxVal,
int minOutput,
int maxOutput)
| Method Detail |
|---|
protected void setMinMax(double[] old)
setMinMax in class Scalerprotected void prepareScaling(double[] c)
Scaler
prepareScaling in class Scalerprotected byte scale(double val)
Scaler
scale in class Scaler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||