R/fitnmr.R
height_assign.Rd
This uses a greedy algorithm. It iterates over the unknown peaks in order of decreasing height and assigns each unknown to the closest assigned peak within a distance determined by the thresh parameter, as long as that peak wasn't already assigned.
height_assign(assigned, unknown, thresh = 0.01)
two column matrix with assigned peak chemical shifts
three column matrix with unknown peak chemical shifts and heights
maximum distance (as a fraction of the two chemical shift ranges)