ariane.lib.utils

class ariane.lib.utils.config.ConfigMixin(config)[source]

Mixin class for adding a configuration instance.

class ariane.lib.utils.logging.LoggerMixin(name=None)[source]

Mixin class for adding a logger instance.

ariane.lib.utils.math.map_intervals(bounds_src, bounds_tar)[source]

Return function mapping between two intervals.

ariane.lib.utils.math.normalizer(a_src, b_src)[source]

Return function mapping an interval to (0, 1).

ariane.lib.utils.math.denormalizer(a_src, b_src)[source]

Return function mapping (0, 1) to an interval.

ariane.lib.utils.math.cartesian_product(*s)[source]

Return the cartesian product of a set of sets.

ariane.lib.utils.math.cholesky_update(L, Aij_new, Aii_new)[source]

Update a Cholesky decomposition for new entries.

ariane.lib.utils.math.compute_corner_pairs(*limits)[source]

Return all pairs of corner points of a hypercube.

ariane.lib.utils.math.make_grid(limits, num)[source]

Return a grid in a hyperrectangle with given number(s) of points per dimension.

ariane.lib.utils.math.rotation_matrix_2d(alpha: float, in_rad=False)[source]

Return a 2D matrix rotating a coordinate system by a given angle.

ariane.lib.utils.math.normalized_linear_interpolator(x, f, interpolator=<class 'scipy.interpolate.interpnd.LinearNDInterpolator'>, fill_value=0, x_min=None, x_max=None)[source]

Return a linear interpolator interpolating on a normalized (unit) hypercube.