public static class SignalProcessing.PolynomialSampleGenerator extends java.lang.Object implements DoubleUnaryOperation
h(t) = a0 + a1t + a2t2 + ...
+ an-1tn-1
or
h(t) = a0 + a1t-1
+ a2t-2 + ...
+ an-1t-(n-1)
depending on the direction specified.| Constructor and Description |
|---|
PolynomialSampleGenerator(double[] coefficients,
int direction)
Construct a PolynomialSampleGenerator.
|
| Modifier and Type | Method and Description |
|---|---|
double |
operate(double time)
Return a sample of the line, sampled at the specified time.
|
public PolynomialSampleGenerator(double[] coefficients,
int direction)
coefficients - An array of double coefficients.direction - 1 for positive exponents, -1 for negative
exponents.public final double operate(double time)
operate in interface DoubleUnaryOperationtime - The operand.