spyrit.core.prep

Preprocessing operators applying affine transformations to the measurements.

There are two classes in this module: DirectPoisson and SplitPoisson. The first one is used for direct measurements (i.e. without splitting the measurement matrix in its positive and negative parts), while the second one is used for split measurements.

Classes

Rerange(input_range, output_range)

Applies the affine transform that maps \([x,y]\) to \([a,b]\).

Rescale(alpha)

Rescale measurements as

RescaleEstim(meas_op, **pinv_kwargs)

Rescale measurements as

Unsplit()

Preprocess measurements simulated using split measurement operator.

UnsplitRescale([alpha])

Unsplit and rescale measurements as

UnsplitRescaleEstim(meas_op, **pinv_kwargs)

Unsplit and rescale measurements as