BGlib.be.translators.df_utils.be_utils.generate_bipolar_triangular_waveform

BGlib.be.translators.df_utils.be_utils.generate_bipolar_triangular_waveform(cycle_pts, cycle_frac=1, phase=0, amplitude=1, cycles=1, offset=0)[source]

Generates a bi-polar triangular waveform based on basic parameters

Parameters:
  • cycle_pts (int) – Number of parameters in a single cycle

  • cycle_frac (float, optional. Default = 1) – Fraction of the cycle - ranges as (0, 1]

  • phase (float, optional. Default = 0) – Phase offset for the waveform. Ranges as [0, 1)

  • amplitude (float, optional. Default = 1) – Maximum amplitude for the waveform

  • offset (float, optional. Default = 0) – DC offset for the waveform

  • cycles (int, optional. Default = 1) – Number of repetitions or cycles

Return type:

dc_vec