Predefined drift functions for csi_model objects.

drift_linear(phi, dt, N)

drift_none(phi, dt, N)

drift_quadratic(phi, dt, N)

Arguments

phi

Vector of kernel parameters in the original basis.

dt

Interobservation time \(\Delta t\) = 1/fps (positive scalar).

N

Number of observations (positive integer).

Details

Models inheriting from the csi_model base class must specify a drift function having argument signature function(phi, dt, N) and returning an N x n_drift matrix of drift basis functions for the trajectory increments (as opposed to the original positions). The predefined drift functions provided here can account for linear drift, quadratic drift, or no drift at all.