convolve_binned_data module
Functions to support convolution of binned data.
Binned data is a new version of ensemble-based data, but inflated. Because that data usually is binned, and the time-bin spans some range rather than a distinct point in time, we should provide support for that.
Routine that handles calculating the overlap of a time-bin series with the starformation rate bins - calculates distances from edges - calculates overlap fraction of sfr bins - calculates fraction of time
TODO: allow using CDF to re-scale. Data within the bin may not be distributed uniformly per se.
- syntheticstellarpopconvolve.convolve_binned_data.calculate_overlap_fractions(shifted_left_delay_time_data_bin_edge, shifted_right_delay_time_data_bin_edge, sfr_bin_sizes, sfr_bin_edges)[source]
Function to calculate the overlap
TODO: consider returning only the information of the bins that overlap.