|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectasu.seismo.signals.utils.linScaler
public class linScaler
Linear scaling function. This function implements a simple affine transform.
Field Summary | |
---|---|
protected double |
Dmax
|
protected double |
Dmin
|
protected double |
Smax
|
protected double |
Smin
|
Constructor Summary | |
---|---|
linScaler()
Construct empty class. |
|
linScaler(double DisplayMin,
double DisplayMax,
double SignalMin,
double SignalMax)
Initiate Scaling function with given end points of the two intervals. |
Method Summary | |
---|---|
double |
d2o(double disp)
Return o given d |
int |
io2d(double org)
Return an integer representation of d given o |
double |
o2d(double org)
Return d given o |
void |
setScale(double DisplayMin,
double DisplayMax,
double SignalMin,
double SignalMax)
Initiate Scaling function with given end points of the two intervals. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double Smin
protected double Smax
protected double Dmin
protected double Dmax
Constructor Detail |
---|
public linScaler()
public linScaler(double DisplayMin, double DisplayMax, double SignalMin, double SignalMax)
Method Detail |
---|
public void setScale(double DisplayMin, double DisplayMax, double SignalMin, double SignalMax)
public double d2o(double disp)
d2o
in interface graphScale
public double o2d(double org)
o2d
in interface graphScale
public int io2d(double org)
io2d
in interface graphScale
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |