Class BounceParameters
java.lang.Object
org.opensourcephysics.cabrillo.tracker.BounceParameters
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 Summary
ConstructorsConstructorDescriptionBounceParameters
(BounceModel m, BounceMatrix p, double e) constructorBounceParameters
(BounceModel m, BounceMatrix p, double e, double step_at, double[] step_size) constructor -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
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, ...final double
getError()
read-only access to errorfinal BounceModel
getModel()
read-only access to modelfinal BounceMatrix
read-only access to paramsdouble
when is there a step?double[]
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()).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, ...
-
Constructor Details
-
BounceParameters
constructor- Parameters:
m
- modelp
- paramse
- square_error
-
BounceParameters
public BounceParameters(BounceModel m, BounceMatrix p, double e, double step_at, double[] step_size) constructor- Parameters:
m
- modelp
- paramse
- square_errorstep_at
- when initial step isstep_size
-
-
-
Method Details
-
getModel
read-only access to model- Returns:
- model
-
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
-