latching_noise
- NoiseGenerator.latching_noise(data_map, excited_data, dot_charges, are_dots_combined, ave_pixels, axis, shift_positive=True)
Adds latching effects to
data_map.This is done by selecting data from
excited_datain place of fromdata_mapfor a few pixels after each transition.The number of pixels is determined by drawing from a geometric distribution with mean
ave_pixels + 1and subtracting 1 from this result.- Parameters:
data_map (ndarray[float]) – The data to add latching noise to.
excited_data (ndarray[float]) – An array with the same shape as
data_mapgiving the sensor readout (or whatever data is being plotted) for an excited state. The excited state should be the previous stable charge state along the measurement axis.dot_charges (ndarray[int]) – An array with shape
(*(data_map.shape), n_dots)giving the charge state for each dot at each pixel.are_dots_combined (ndarray[bool]) – An array with shape
(*(data_map.shape), n_dots-1)which indicates whether the dots on each side of a barrier are combined together.ave_pixels (float) – The average number of pixels for which to use excited data after each transition. Specifically, excited data will be used for
x-1pixels, wherexis drawn from a geometric distribution with meanave_pixels + 1.axis (int) – The measurement axis. Excited data will be used for lines of pixels running parallel to
axis.shift_positive (bool) – Whether to excited data should be used on the positive side of a transition (True), or the negative side of a transition (False).
- Returns:
data_mapwith several pixels after each transition selected fromexcited_data.- Return type:
ndarray[float]