redback.utils.calculate_normalisation
- redback.utils.calculate_normalisation(unique_frequency, model_1, model_2, tref, model_1_dict, model_2_dict)[source]
Calculate the normalisation for smoothly joining two models together at a reference time.
- Parameters:
unique_frequency – An array of unique frequencies. Can be None in which case we assume there is only one normalisation.
model_1 – must be redback model with a normalisation parameter
model_2 – any redback model
tref – time which transition from model_1 to model_2 takes place
model_1_dict – dictionary of parameters and values for model 1
model_2 – dictionary of parameters and values for model 1
- Returns:
normalisation, namedtuple corresponding to the normalisation for the specific frequency.
Could be bolometric luminosity, magnitude, or frequency