pybic.TestSignal

pybic.TestSignal(whatsig, tend=100, noisy=2, fS=200, f1=19, f2=45)[source]

Provides various signals for bispectral analysis.

Essentially a suite of test functions for PyBic!

Mostly a wrapper for SignalGen()

For more discussion see RiggsKoepkeMatheny2026.

Parameters:
  • whatsig (str) – Input string (see below).

  • tend (float) – End time, via t = 0:1/fS:tend.

  • noisy (float) – Noise amplitude.

  • fS (float) – Sampling frequency in Hz.

  • f1 (float) – Frequency of oscillation #1 in Hz.

  • f2 (float) – Frequency of oscillation #2 in Hz.

Returns:

inData,t,fS = TestSignal(...)

Return type:

list

The following input strings are supported

'demo' 'classic' 'tone' 'noisy' '2tone' '3tone' '4tone' 'line' 'circle' 'fast_circle' 'quad_couple' 'd3dtest' 'cube_couple' 'coherence' 'cross_2tone' 'cross_3tone' 'cross_circle' 'amtest' 'quad_couple_circle' 'quad_couple_circle2' 'inst_freq_test' 'linear_phase' 'phase_mod' 'linear_phase_am' 'phase_mod_am' '3tone_short' 'circle_oversample' 'cross_3tone_short' 'helix'

Example

>>> x,t,fS = TestSignal('quad_couple')
>>> b = bic.BicAn(x,samprate=fS)