LinearTransform Class
- class flowkit.transforms.LinearTransform(transform_id, param_t, param_a)
Parametrized linear transformation, implemented as defined in the GatingML 2.0 specification:
flin(x, T, A) = (x + A) / (T + A)
- Parameters:
transform_id – A string identifying the transform
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