pybec.analysis.correct_jumps_between_arr

pybec.analysis.correct_jumps_between_arr(arr1, arr2, jump_quantum)[source]

Shift the start value of one array to align with the end value of another.

Parameters
  • arr1 (numpy.ndarray) – Nx0 array of values in the trajectory of some variable.

  • arr2 (numpy.ndarray) – Mx0 array of values in the trajectory of some variable. The function will shift all values in this array such that its start aligns with the end of arr1.

  • jump_quantum (float) – The shift added to arr2 will be an integer multiple of this jump_quantum size.

Returns

Mx0 array of shifted arr2 values.

Return type

np.ndarray