initialize

jdaviz.configs.default.plugins.model_fitting.initializers.initialize(instance, x, y)[source] [edit on github]

Initialize given model.

X and Y are for now Quantity arrays with the independent and dependent variables. It’s assumed X values are stored in increasing order in the array.

Parameters
instanceModel

The model to initialize.

x, yndarray

The data to use to initialize from.

Returns
instanceModel

The initialized model. If there are any errors, the instance is returned uninitialized.