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

    Modifier and Type
    Method
    Description
    evaluate(Object[] data)
    Evaluates the derivative(s).
  • Method Details

    • evaluate

      Object[] evaluate(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