Models

These are extra lmfit models created for APAV.

PowerLawShiftModel

class apav.analysis.models.PowerLawShiftModel(*args, **kwargs)[source]

Shifted power law model

This model defines a shifted power law with refined parameter min/max/initial values for APAV

guess(data, x=None, **kwargs)[source]

Estimate initial model parameter values from data.

ExponentialGaussianModel

class apav.analysis.models.ExponentialGaussianModel(*args, **kwargs)[source]

Exponential gaussian model

This model defines an exponentially modified gaussian with refined parameter min/max/initial values for APAV

guess(*args, **kwargs)[source]

Guess starting values for the parameters of a model.

Parameters
  • data (array_like) – Array of data to use to guess parameter values.

  • **kws (optional) – Additional keyword arguments, passed to model function.

Returns

params – Initial, guessed values for the parameters of a Model.

Return type

Parameters