cwitools.kinematics

Tools for kinematic calculations.

Functions

basic_moments(x, y[, y_var, pos_thresh, …]) Calculate first and second moment.
closing_window_moments(x, y[, m1_init, …]) Calculate first and second moments using the ‘closing-window method’ (O’Sullivan et al.
first_moment(x, y[, y_var, get_err]) Calculate first moment.
first_moment_err(x, y[, y_var]) Calculate propagated error on the first moment.
second_moment(x, y[, m1, y_var, get_err]) Calculate first moment.
second_moment_err(x, y[, m1, y_var]) Calculate propagated error on the second moment.