|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.util.HalfCosineInterpolator
public class HalfCosineInterpolator
Interpolate a value along an S curve (half cosine)
Constructor Summary | |
---|---|
HalfCosineInterpolator(double t1,
double v1,
double t2,
double v2)
Construct a linear interpolator that intersects two specified points |
Method Summary | |
---|---|
double |
interp(double t)
Given the input t, return the value along the half cosine function |
static void |
main(java.lang.String[] args)
build an interpolator and print 20 points along the line |
void |
setInterp(double t1,
double v1,
double t2,
double v2)
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 HalfCosineInterpolator(double t1, double v1, double t2, double v2)
Method Detail |
---|
public void setInterp(double t1, double v1, double t2, double v2)
setInterp
in interface Interpolator
public double interp(double t)
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 |