This function fits a spline to autofluorescence data, removing extreme events and defining bounds equally far from zero. It uses robust linear modeling and identifies events within a specified number of standard deviations from the spline.
fit.af.spline(af.cells, non.af.cells, asp)The boundary of the events within the specified number of standard deviations from the spline.