powered by
rm too closed peaks or troughs
removeClosedExtreme(pos, ypred, A = NULL, y_min)
A data.table with the columns of: "val", "pos", "left", "right", "type"
"val", "pos", "left", "right", "type"
data.table with the columns of "val", "pos", "left", "right", "type".
#removeClosedExtreme(pos, ypred, A, y_min)
Run the code above in your browser using DataLab