DiscriminationFilter¶
- class DiscriminationFilter(discriminator, base=None)[Quellcode]¶
Bases:
object
Implements a filter based on a discriminator that takes level 1 data to level 2 data.
- Usage:
my_filter = DiscriminationFilter(my_discriminator) new_result = filter.apply(level_1_data)
- Parameter
discriminator (BaseDiscriminationFitter) – a discriminator that maps level 1 data to level 2 data. - Level 1 data may correspond to, e. g., IQ data. - Level 2 data is the state counts.
base (
Optional
[int
]) – the base of the expected states. If it is not given the base is inferred from the expected_state instance of discriminator.
Methods
Create a new result from the raw_data by converting level 1 data to level 2 data.
Converts discriminated results into raw counts.
Returns the base inferred from expected_states.