org.opensourcephysics.cabrillo.tracker
Interface Derivative
- All Known Implementing Classes:
- BounceDerivatives, FirstDerivative, SecondDerivative
public interface Derivative
A Derivative implements an algorithm for finding a first, second or both derivatives.
- Author:
- Douglas Brown
|
Method Summary |
java.lang.Object[] |
evaluate(java.lang.Object[] data)
Evaluates the derivative(s). |
evaluate
java.lang.Object[] evaluate(java.lang.Object[] data)
- Evaluates the derivative(s).
Input data:
data[0] = parameters (int[] {spill, start, stepsize, count})
data[1] = xData (double[])
data[2] = yData (double[])
data[3] = validData (boolean[])
Returned result:
result[0] = firstDerivX (double[]) may be null
result[1] = firstDerivY (double[]) may be null
result[2] = secondDerivX (double[]) may be null
result[3] = secondDerivY (double[]) may be null
Note: result values may be NaN if no derivative could be determined
- Parameters:
data - the input data
- Returns:
- Object[] result