Skip to content

Time¤

TimeInterval is an alias of ScalarInterval with default label "t". Use ScalarInterval(..., label="...") for generic scalar axes.

phydrax.domain.TimeInterval ¤

A closed finite 1D scalar interval domain.

Represents the domain

\[ \Omega_{\ell} = [a, b], \]

with label given by label. The measure is the interval length \(|\Omega_{\ell}|=b-a\).

Sampling draws points \(x_i\in[a,b]\) using the chosen sampler (uniform, Latin hypercube, Sobol, etc.), optionally filtered by a predicate where(x).

extent property ¤

Return the interval length \(b-a\).

measure property ¤

Return the measure \(|\Omega_{\ell}|\) (equal to extent).

bounds property ¤

Return an iterator over \((a, b)\).

__init__(start: float, end: float, *, label: str = 't') ¤
sample(num_points: int, *, sampler: str = 'latin_hypercube', where: collections.abc.Callable | None = None, key: Key[Array, ''] = jr.key(0)) -> Array ¤
fixed(which: str) -> Array ¤