archimedes.measure.RealLine¶
- class archimedes.measure.RealLine¶
The reference real line \((-\infty, \infty)\), reparametrized by a location and scale. Shared by both Hermite measures.
Classes
Parameters([loc, scale])Location/scale of the target domain; see
affine_params.Methods
affine_params([loc, scale])Location-scale map \(x = \mathrm{loc} + \mathrm{scale} \cdot t\).
resolve_params([loc, scale])Build this domain's
Parameters, defaulting to loc=1.0, scale=1.0Attributes
Support \((-\infty, \infty)\).
- __init__()¶
- affine_params(loc=None, scale=None) tuple[float, float]¶
Location-scale map \(x = \mathrm{loc} + \mathrm{scale} \cdot t\).
Note that the meaning of
scaledepends on the weight paired with this domain, not on the domain itself: for the physicists’ Hermite weight \(e^{-t^2}\) it is \(\sqrt{2}\) times the standard deviation of the corresponding Gaussian density, while for the probabilists’ weight \(e^{-t^2/2}\) it is exactly that standard deviation. See the respectiveMeasuredocstrings.- Parameters:
loc (float, optional) – Location of the target domain. Default 0.
scale (float, optional) – Scale of the target domain. Default 1.
- Returns:
scale, shift – Affine parameters as derived above.
- Return type:
float
- Raises:
ValueError – If
scaleis not positive.
- resolve_params(
- loc=None,
- scale=None,
Build this domain’s
Parameters, defaulting to loc=1.0, scale=1.0
- property support: tuple[float, float]¶
Support \((-\infty, \infty)\).