Calculate the drift given x and y

calculate_drift(x, y)

Arguments

x

A vecor containing x co-ordinates (same length as that of y)

y

A vecor containing y co-ordinates (same length as that of x)

Value

Drift vector which is sqrt(dx^2 + dy^2)