PowerEnvelopeKernel
- class pmrf.stats.PowerEnvelopeKernel(reference: Array | ndarray | bool | number | bool | int | float | complex, exponent: Array | ndarray | bool | number | bool | int | float | complex, *, name: str | None = None, metadata: Any = None)
Bases:
AbstractCovarianceKernelPower-law amplitude envelope for a one-dimensional frequency input.
$$k(x_1, x_2) = s(x_1)s(x_2), qquad s(x) = left(frac{x}{x_text{ref}}right)^{-alpha}$$
This rank-one kernel is singular on its own. Multiply it by another kernel to make that kernel’s prior standard deviation scale as \(s(x)\). Inputs must be strictly positive and contain exactly one feature.
referencemust use the same units as the GP input (frequency.f_scaledin the fitting path). A unit mismatch silently rescales the prior variance by \((\text{unit ratio})^{-2\alpha}\).- Parameters:
reference (ArrayLike) – Input at which the amplitude is one, in the same units as the GP input.
exponent (ArrayLike) – Decay exponent. A shape
(D,)givesDbatched kernels.
- __call__(x1, x2, key=None)
Evaluate the kernel between two points.
- Parameters:
x1 (jnp.ndarray) – First input point.
x2 (jnp.ndarray) – Second input point.
key (jax.random.PRNGKey, optional) – Random key for stochastic kernels.
- Returns:
Kernel covariance scalar.
- Return type:
jnp.ndarray
- exponent: Array | ndarray | bool | number | bool | int | float | complex
The decay exponent.
- reference: Array | ndarray | bool | number | bool | int | float | complex
The reference input.