__init__
- LinComb.__init__(choices=None, **kwargs)
Class to generate linear-combinations of scattering distribution functions.
For details please look at the documentation (http://rt1.readthedocs.io/en/latest/model_specification.html#linear-combination-of-scattering-distributions)
- Parameters:
choices ([ (float, ScatterObject) , (float, ScatterObject) , ...]) –
A list that contains the the individual scattering functions and the associated weighting-factors for the linear-combination.
The weights can be either numerical values or strings (which will be parsed as sympy expressions)
Examples
Defining linear-combinations of volume- or surface scattering distributions works completely similar:
>>> from rt1_model import volume >>> V = volume.LinComb([(0.5, volume.Isotropic()), (0.5, volume.Rayleigh())])
>>> from rt1_model import surface >>> V = surface.LinComb([(0.5, surface.Isotropic()), (0.5, surface.HenyeyGreenstein(t="t", ncoefs=10))])
You can also use expressions for the weights!
>>> from rt1_model import surface >>> V = surface.LinComb([("x", surface.Isotropic()), ("1 - x", surface.HenyeyGreenstein(t="t", ncoefs=10))])