mcsas.bases.model.sasmodel module

class SASModel[source]

Bases: bases.model.scatteringmodel.ScatteringModel

calcIntensity(data, compensationExponent=None)[source]

Returns the intensity I, the volume \(v_{abs}\) and the intensity weights w for a single parameter contribution over all q:

\(I(q,r) = F^2(q,r) \cdot w(r)\)

canSmear = False
getQ(dataset)[source]

This is a function that returns Q. In case of smearing, dataset itself is a 2D matrix of Q-values. When smearing is not enabled, dataset.q contains a 1D vector of q.

I do realize that this is not a good way of doing things. This should be replaced at a given point in time by a better solution within sasdata.

modelDataType()[source]

Warning

method ‘bases.model.sasmodel.SASModel.modelDataType’ undocumented

weight()[source]

Calculates an intensity weighting used during fitting. It is based on the scatterers volume. It can be modified by a user-defined compensation exponent c. The default value is \(c={2 \over 3}\)

\(w(r) = v(r)^{2c}\)