analysis
#
Curve fit of cell density versus shear stress
- fit(distances: ndarray, n_bins: int = 21) tuple[ndarray, ndarray, ndarray, ndarray, ndarray] [source]#
Fits cell density to sigmoid curve.
Expects the relative
distances
of the cells from the center andn_bins
, the number of bins in the histogram.Returns
(x_data, y_data, x_fit, y_fit, parameters)
, which represent the binned data of shear stress vs. normalized cell density, the coordinates of the corresponding fit curve, and the fit parameters.
- sigmoid(x: ndarray, a: float, b: float, c: float) ndarray [source]#
Fit function according to Boettiger (2007).
a
is the plateau maximum and constrained to 0.95 < a < 1.05.b
is the slope of the curve at the inflection point. It reflects the distribution.c
is \(\tau_{50}\), the mean shear stress required for cell detachment and is proportional to the number of adhesive bonds.