.cutDive(x, smooth.par, knot.factor, descent.crit.q, ascent.crit.q)
.labDive(act, string)
.labDivePhase(x, diveID, ...).labDivePhase, a class TDR object.
For .cutDive, a 3-col matrix with subscript in original TDR
object, non NA depths, and numeric vector representing
calibrateDepth.act to
search for and label sequentially..cutDive (smooth.par
and knot.factor)..labDive returns a matrix with as many rows as its first two
arguments with two columns: dive.id, and postdive.id, each one
sequentially numbering each dive and postdive period. .labDivePhase returns a list with a factor having levels
x contains no dives, only level diveModel objects for each dive.
.cutDive generates a diveModel object with
details of model used to detect dive phases using cubic spline
smoothing and its first derivative.