|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.muni.fi.xmravec.bc.prodes.LinearInterpolator
public class LinearInterpolator
Linear Interpolar
Constructor Summary | |
---|---|
LinearInterpolator(double A,
double B,
double a,
double b)
Creates a linaer interpolator for given interval |
Method Summary | |
---|---|
double |
interpolate(double x)
Calculates y value for given x value within the interval |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinearInterpolator(double A, double B, double a, double b)
A
- y value - start of the intervalB
- y value - end of the intervala
- x value - start of the intervalb
- x value - end of the intervalMethod Detail |
---|
public double interpolate(double x)
x
- x value within the interval
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |