View source: R/trajectory_prediction_setup.R
| predict_traj_input_validation | R Documentation |
Checks that the proper combination of inputs is provided. Should be one of: new_times; new_distances; distance_lims AND timestep. If latter or new_distances, trajectory must also have inverse function. Derivative is also checked against maximum allowed.
predict_traj_input_validation(
new_times,
new_distances,
distance_lims,
timestep,
has_inv,
deriv,
max_deriv
)
new_times |
A DF or vector of new time values, or |
new_distances |
A DF or vector of new distance values, or |
distance_lims |
A vector of min, max distance, or |
timestep |
An integer for interpolation timestep, or |
has_inv |
Boolean, does traj have inv fun? |
deriv |
vector of numeric derivs to interpolate at |
max_deriv |
Maximum derivative supported by traj fun |
Throws error only if not all OK
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.