avgBkgCorrect

fiducia.rawProcess.avgBkgCorrect(timesFrame, df, channels, timeLength=1e-09)[source]

Applies background correction to bring the signal down to zero, based on averaging the signal background over a section of time from earliest time contained in timesFrame to earliest time plus timeLength.

Parameters
  • timesFrame (pandas.core.frame.DataFrame) – Dataframe of time axis values corresponding to signals in df. These should be in units of seconds.

  • df (pandas.core.frame.DataFrame) – Dataframe of dante signals. These should already be attenuation corrected and in units of volts.

  • channels (set) – Set of channels to be analyzed.

  • timeLength (float) – Duration of time from initial time over which to take the average. In units of seconds.

  • dfAvg (pandas.core.frame.DataFrame) – Returns a dataframe containing average background corrected signals.

Returns

Return type

dfAvg

Notes

Examples