|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.util.LinearInterpolator
public class LinearInterpolator
Interpolate a value along a line defined by two points (x1,y1) and (x2,y2)
Constructor Summary | |
---|---|
LinearInterpolator(double ex1,
double why1,
double ex2,
double why2)
Construct a linear interpolator that intersects two specified points |
Method Summary | |
---|---|
double |
interp(double x)
Given the input x, return the y along the interpolator's linear function |
static void |
main(java.lang.String[] args)
build an interpolator and print 20 points along the line |
void |
setInterp(double ex1,
double why1,
double ex2,
double why2)
Set the interpolator to calculate points along the line intersecting two specified points |
java.lang.String |
toString()
print me |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LinearInterpolator(double ex1, double why1, double ex2, double why2)
Method Detail |
---|
public void setInterp(double ex1, double why1, double ex2, double why2)
setInterp
in interface Interpolator
public double interp(double x)
interp
in interface Interpolator
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |