FractalAbsModel

sans.models.FractalAbsModel

Provide F(x)= P(|x|)*S(|x|) + bkd Fractal as a BaseComponent model

class sans.models.FractalAbsModel.FractalAbsModel

Bases: sans.models.FractalModel.FractalModel

Class that evaluates a Fractal function.

F(|x|)= P(|x|)*S(|x|) + bkd The model has Seven parameters:

scale = Volume fraction radius = Block radius fractal_dim = Fractal dimension corr_length = correlation Length block_sld = SDL block solvent_sld = SDL solvent background = background
calculate_ER()

Calculate the effective radius for P(q)*S(q)

Returns:the value of the effective radius
clone()

Return a identical copy of self

dispersion

Dispersion parameters

evalDistribution(x=[])

Evaluate the model in cartesian coordinates

Parameters:x – input q[], or [qx[], qy[]]
Returns:scattering function P(q[])
getDispParamList()

Return a list of all available parameters for the model

getParam(name)

Set the value of a model parameter

Parameters:name – name of the parameter
getParamList()

Return a list of all available parameters for the model

getParamListWithToken(token, member)
getParamWithToken(name, token, member)
is_fittable(par_name)

Check if a given parameter is fittable or not

Parameters:par_name – the parameter name to check
log

Log

params

Parameters

reset

Reset pair correlation

run(x=0.0)

Evaluate the model

Parameters:x – input q, or [q,phi]
Returns:scattering function P(q)
runXY(x=0.0)

Evaluate the model in cartesian coordinates

Parameters:x – input q, or [qx, qy]
Returns:scattering function P(q)
setParam(name, value)

Set the value of a model parameter

Parameters:
  • name – name of the parameter
  • value – value of the parameter
setParamWithToken(name, value, token, member)
set_dispersion(parameter, dispersion)

Set the dispersion object for a model parameter

Parameters:
  • parameter – name of the parameter [string]
  • dispersion – dispersion object of type DispersionModel

Table Of Contents

Previous topic

FlexibleCylinderModel

Next topic

FractalCoreShellModel

This Page