Class BounceParameters

java.lang.Object
org.opensourcephysics.cabrillo.tracker.BounceParameters

public class BounceParameters extends Object
A BounceParameters object is a set of parameters for a BounceModel model, which is included by reference. Wed Nov 2 15:30:20 PDT 2011 Kevin Karplus
Author:
Kevin Karplus
  • Constructor Details

    • BounceParameters

      public BounceParameters(BounceModel m, BounceMatrix p, double e)
      constructor
      Parameters:
      m - model
      p - params
      e - square_error
    • BounceParameters

      public BounceParameters(BounceModel m, BounceMatrix p, double e, double step_at, double[] step_size)
      constructor
      Parameters:
      m - model
      p - params
      e - square_error
      step_at - when initial step is
      step_size -
  • Method Details

    • getModel

      public final BounceModel getModel()
      read-only access to model
      Returns:
      model
    • getParams

      public final BounceMatrix getParams()
      read-only access to params
      Returns:
      params
    • getError

      public final double getError()
      read-only access to error
      Returns:
      square_error
    • getStepAt

      public double getStepAt()
      when is there a step?
      Returns:
      time of step in velocity
    • getStepSize

      public double[] getStepSize()
      how big is the step? The dimensionality of the returned array of doubles is the same as the number of columns in the model_param Matrix (that would be 2 for model_param returned by fit_xy()).
      Returns:
      step size (0 if no step)
    • first_deriv

      public double[] first_deriv(double t)
      first derivatives of model at time t time is "model" time, with t=0 as the first data point, t=1 as the second data point, ... The dimensionality of the returned array of doubles is the same as the number of columns in the params.
      Parameters:
      t - time
      Returns:
      derivatives
    • second_deriv

      public double[] second_deriv(double t)
      second derivatives of model at time t time is "model" time, with t=0 as the second data point, t=1 as the second data point, ... The dimensionality of the returned array of doubles is the same as the number of columns in the params.
      Parameters:
      t - time
      Returns:
      derivatives