compsense.operators.opRandMask

class compsense.operators.opRandMask(shape, fill_ratio)[source]

Random binary mask.

The opRandMask operator creates and applies a random binary mask.

Parameters :

shape : list of integers

Shape of the input signal.

fill_ratio : float

Ratio of non zero (1) values in the mask.

Attributes

T The transpose of the operator.
in_signal_shape The shape of the input signal for the operator.
name Name of operator.
out_signal_shape The shape of the output signal for the operator.
shape The shape of the operator.

Previous topic

compsense.operators.opBlur

Next topic

compsense.operators.opWavelet

This Page