density.utils

density.utils#

Utilities for density compensation.

Functions

flat_traj

Decorate function to ensure that the trajectory is flatten before calling.

get_density

Get the density compensation function from its name.

normalize_weights

Normalize samples weights to reflect their importance.