Extrapolation: Power Law

Extrapolate as: I(q) = A * q^p

class jldesmear.jl_api.extrap_powerlaw.Extrapolation[source]

I(q) = A * q^p

calc(q)[source]
\[I(q) = A \ q^p\]
Parameters:q (float) – magnitude of scattering vector
Returns:value of extrapolation function at q
Return type:float
fit_add(reg, x, y, z)[source]

Add a data point to the statistics registers. Called from fit_loop().

Note:

might override in subclass

Parameters:
  • reg (StatsRegClass object) – statistics registers (created in fit())
  • x (float) – independent axis
  • y (float) – dependent axis
  • z (float) – estimated uncertainty of y
fit_result(reg)[source]

Determine the results of the fit and store them as the set of coefficients in the self.coefficients dictionary. Called from fit().

Note:must override in subclass otherwise fit_result() will throw an exception
Parameters:reg (StatsRegClass object) – statistics registers (created in fit())