trackpy.predict.NearestVelocityPredict

class trackpy.predict.NearestVelocityPredict(initial_guess_positions=None, initial_guess_vels=None, pos_columns=None, span=1)

Predict a particle’s position based on the most recent nearby velocity.

Parameters:
initial_guess_positionsNxd array, optional

Columns should be in the same order used by the linking function.

initial_guess_velsNxd array, optional

If specified, these initialize the velocity field with velocity samples at the given points.

pos_columnslist of d strings, optional

Names of coordinate columns corresponding to the columns of the initial_guess arrays, e.g. [‘y’, ‘x’]. Required if a guess is specified.

spaninteger, default 1

Compute velocity field from the most recent span+1 frames.