fix normalization

This commit is contained in:
2026-05-26 18:05:24 +03:00
parent 4ecb3f5ea5
commit c7216e4e8e

View File

@ -713,7 +713,7 @@ class MainWindow(QMainWindow):
(self.pulse_width * self.adc_dac_ratio) / self.window_size) (self.pulse_width * self.adc_dac_ratio) / self.window_size)
reference[0:actual_pulse_width] = [ reference[0:actual_pulse_width] = [
self.pulse_height - 2 ** (self.adc_dw - 1) + 1, ] * (actual_pulse_width - 1) (self.pulse_height / 2 ** (self.dac_dw - self.adc_dw)) - 2 ** (self.adc_dw - 1), ] * (actual_pulse_width - 1)
return reference return reference