LinearTransform Class
- class flowkit.transforms.LinearTransform(param_t, param_a)
Parametrized linear transformation, implemented as defined in the GatingML 2.0 specification:
flin(x, T, A) = (x + A) / (T + A)
This transformation linearly maps values from the interval [−A, T] to the interval [0, 1]. However, it is defined for all x ∈ R including outside the [−A, T] interval.
- Parameters:
param_t – parameter for the top of the linear scale (e.g. 262144)
param_a – parameter for the offset, controls the bottom of the scale
- apply(events)
Apply transform to given events.
- Parameters:
events – NumPy array of FCS event data
- Returns:
NumPy array of transformed events
- inverse(events)
Apply the inverse transform to given events.
- Parameters:
events – NumPy array of FCS event data
- Returns:
NumPy array of inversely transformed events