trackpy.predict.DriftPredict

class trackpy.predict.DriftPredict(initial_guess=None, pos_columns=None, span=1)

Predict a particle’s position based on the mean velocity of all particles.

Parameters:
initial_guessArray of length d, optional

Velocity vector initially used for prediction. Default is to assume zero velocity.

pos_columnslist of d strings, optional

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

spaninteger, default 1

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