linear_switching#

mbgdml.switching.linear_switching(data, factor)[source]#

Linear switching function:

\[y = Ax\]

where \(x\) is data, \(A\) is the scaling factor, and \(y\) is the scaled data.

Parameters:
  • data (float or numpy.ndarray) – Data to apply switching function to.

  • factor (float) – Scaling factor \(a\) between 0 and 1.