nifty8.re.extra.sampling_los module#

class SamplingCartesianGridLOS(start, end, *, shape, distances, n_sampling_points=500, interpolation_order=1, dtype=None)[source]#

Bases: Model

__init__(start, end, *, shape, distances, n_sampling_points=500, interpolation_order=1, dtype=None)[source]#

Sampling Line-Of-Sight (LOS) intergrator.

Samples the LOS at a number of points and sum up the result to estimate the integral from a starting point to an end point in n-dimensional space.

Parameters:
  • start – Location of the start point(s) in Cartesian space of shape (n_points, n_dim) or (n_dim,).

  • end – Location of the end point(s) in Cartesian space of shape (n_points, n_dim) or (n_dim,).

  • shape – Shape of the input.

  • distances – Tuple of distances for each axis of the shape of the input

  • n_sampling_points (int, optional) – Number of sampling points per LOS for the integration.

  • interpolation_order (int, optional) – Order of the interpolation for reading out the sampling points.

  • dtype (data-type, optional) – Hint specifying the dtype for the construction of the domain.

distances: Array#
end: Array#
start: Array#