Skip to content

Commit b1dd17c

Browse files
authored
Merge pull request #396 from Jammy2211/docs/quantity
docs(quantity): add module-level docstrings to quantity package
2 parents 480af18 + 6da9edc commit b1dd17c

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

autolens/quantity/fit_quantity.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
"""
2+
Quantity fit class for comparing derived lensing quantities across different models.
3+
4+
``FitQuantity`` extends the ``autogalaxy`` base class to accept a ``Tracer`` as the
5+
model object. It fits a ``DatasetQuantity`` (e.g. a 2D convergence map, deflection
6+
angle map, or potential map) with the corresponding quantity derived from a tracer.
7+
8+
Typical use cases include:
9+
10+
- Comparing the convergence of a power-law mass profile with that of an NFW profile on
11+
the same grid, to quantify how well one approximates the other.
12+
- Fitting deflection angles computed by one lens model to those of another model, to
13+
propagate uncertainties from a parametric fit into a more complex model.
14+
15+
The ``AnalysisQuantity`` class uses ``FitQuantity`` as its evaluation engine when
16+
performing a Bayesian model fit via a non-linear search.
17+
"""
118
import autogalaxy as ag
219

320
from autogalaxy.quantity.dataset_quantity import DatasetQuantity

autolens/quantity/model/analysis.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
"""
2+
Analysis class for fitting a ``Tracer`` model to a derived lensing quantity dataset.
3+
4+
``AnalysisQuantity`` combines the ``autogalaxy`` quantity analysis with
5+
``AnalysisLens`` so that a ``Tracer`` is used to evaluate the derived quantity
6+
(e.g. convergence, deflection angles, potential) being fitted.
7+
8+
It is used for model comparison workflows where two different mass profile families
9+
(e.g. power-law vs. NFW) are compared by fitting one's predicted lensing quantity to
10+
the other's, with a noise-map providing the figure-of-merit.
11+
"""
112
import numpy as np
213

314
import autofit as af

0 commit comments

Comments
 (0)