public class NthDegreePolynomial
Nth-degree polynomial interpolated according to the provided derivatives. Note that this implementation is less
performant than class QuinticPolynomial
as it uses general matrix operations for derivative computations.
class QuinticPolynomial
Constructor and Description |
---|
NthDegreePolynomial(java.util.List<java.lang.Double> start,
java.util.List<java.lang.Double> end)
Nth-degree polynomial interpolated according to the provided derivatives. Note that this implementation is less
performant than
class QuinticPolynomial as it uses general matrix operations for derivative computations. |
Modifier and Type | Method and Description |
---|---|
double |
deriv(double t)
Returns the derivative of the polynomial at t.
|
double |
get(double t)
Returns the value of the polynomial at t.
|
double |
secondDeriv(double t)
Returns the second derivative of the polynomial at t.
|
double |
thirdDeriv(double t)
Returns the third derivative of the polynomial at t.
|
public NthDegreePolynomial(java.util.List<java.lang.Double> start, java.util.List<java.lang.Double> end)
Nth-degree polynomial interpolated according to the provided derivatives. Note that this implementation is less
performant than class QuinticPolynomial
as it uses general matrix operations for derivative computations.
start
- start derivatives starting with the 0th derivativeend
- end derivatives starting with the 0th derivativestart
- start derivatives starting with the 0th derivativeend
- end derivatives starting with the 0th derivativeclass QuinticPolynomial
public double get(double t)
Returns the value of the polynomial at t.
public double deriv(double t)
Returns the derivative of the polynomial at t.
public double secondDeriv(double t)
Returns the second derivative of the polynomial at t.
public double thirdDeriv(double t)
Returns the third derivative of the polynomial at t.