darsia.InjectionRateModelObjectiveMixin#

class InjectionRateModelObjectiveMixin[source]#

Bases: AbstractModelObjective

Calibration model based on matching injection rates. Has to be combined with ConcentrationAnalysis.

Methods

calibrate_model(images, options[, plot_result])

Utility for calibrating the model used in darsia.ConcentrationAnalysis.

define_objective_function(input_images, ...)

Define objective function such that the root is the min.

model_calibration_postanalysis()

Interpret calibration result.

update_model_for_calibration(parameters, options)

Wrapper for updating the model, depending on whether it is a single model or a combined model.

define_objective_function(input_images, images_diff, times, options)[source]#

Define objective function such that the root is the min.

Parameters:
input_imageslist of np.ndarray

Input for _convert_signal.

images_difflist of np.ndarray

Plain differences wrt background image.

timeslist of float

Times (units assumed to be compatible).

optionsdict

Dictionary with objective value, here the injection rate.

Returns:
callable()

Objective function.

model_calibration_postanalysis()[source]#

Interpret calibration result.

Returns:
float

Time (in seconds) at which the signal is zero (based on calibration).