bg_homfractal
¶
Background due to a homogeneous spin distribution in a fractal dimension
Syntax¶
info = bg_homfractal()
P = bg_homfractal(t,param)
P = bg_homfractal(t,param,lambda)
- Inputs
t
– Time axis (N-array)param
– Model parameterslambda
– Modulation amplitude (between 0 and 1)
- Outputs
B
– Model background (N-array)info
– Model information (struct)
Model¶
This implements the background due to a homogeneous distribution of spins in a d-dimensional space, with d-dimensional spin concentration c_d
.
Variable | Symbol | Default | Lower bound | Upper bound | Description |
---|---|---|---|---|---|
param(1) |
50 | 0.01 | 5000 | Spin concentration (μmol/dmd) | |
param(2) |
3 | 0 | 6 | Fractal dimension |
Description¶
info = bg_homfractal()
Returns an info
structure containing the specifics of the model:
info.model
– Full name of the parametric model.info.nparam
– Total number of adjustable parameters.info.parameters
– Structure array with information on individual parameters.
B = bg_homfractal(t,param)
Computes the background model B
from the axis t
according to the parameters array param
for a modulation amplitude lambda=1
. The required parameters can also be found in the info
structure.
B = bg_homfractal(t,param,lambda)
Computes the background model B
for a given modulation amplitude lambda
.