linear_switching
#
- mbgdml.switching.linear_switching(data, factor)[source]#
Linear switching function:
\[y = Ax\]where \(x\) is
data
, \(A\) is the scalingfactor
, and \(y\) is the scaled data.- Parameters:
data (
float
ornumpy.ndarray
) – Data to apply switching function to.factor (
float
) – Scaling factor \(a\) between 0 and 1.