interfaces¶
Defines top-level interfaces of tensorwaves.
-
class
Function
[source]¶ Bases:
abc.ABC
Interface of a callable function.
The parameters of the model are separated from the domain variables. This follows the mathematical definition, in which a function defines its domain and parameters. However specific points in the domain are not relevant. Hence while the domain variables are the argument of the evaluation (see
__call__()
), the parameters are controlled via a getter and setter (seeparameters()
). The reason for this separation is to facilitate the events when parameters have changed.
-
class
Kinematics
[source]¶ Bases:
abc.ABC
Abstract interface for computation of kinematic variables.
-
abstract
convert
(events: dict) → dict[source]¶ Convert a set of momentum tuples (events) to kinematic variables.
-
abstract
is_within_phase_space
(events: dict) → Tuple[bool][source]¶ Check which events lie within phase space.
-
abstract property
phase_space_volume
¶ Compute volume of the phase space.
-
abstract
-
class
Optimizer
[source]¶ Bases:
abc.ABC
Optimize a fit model to a data set.
-
abstract
optimize
(estimator: tensorwaves.interfaces.Estimator, initial_parameters: dict) → dict[source]¶ Execute optimization.
-
abstract
-
class
PhaseSpaceGenerator
[source]¶ Bases:
abc.ABC
Abstract class for generating phase space samples.
-
abstract
generate
(size: int, rng: tensorwaves.interfaces.UniformRealNumberGenerator) → dict[source]¶ Generate phase space sample.
-
abstract