proxystore.stream.filters¶
Set of common stream filters.
NullFilter
¶
SamplingFilter
¶
SamplingFilter(p: float)
Filter that randomly filters out objects.
Parameters:
-
p
(float
) –Probability of the filter return
True
. I.e., the object gets filtered out.
Raises:
-
ValueError
–if
p
is not in the range[0, 1]
.