
Finds critical points (minima or maxima) of the differences between segments ratios.
GetCriticalPoints.Rd
GetCriticalPoints takes the estimated density values (via KDE) from a batch of samples of segment ratio differences (S_i - S_j), a critical point (min/max), and returns a list of the densities where the critical point is found.
If crit_point == 'max', then densities > 0 If crit_point == 'min', then densities < 0