Choose a given number of breakpoints in a set of trajectories.

Share:

Description

This function automatically chooses a subset of breakpoints from all the estimated breakpoints of function splitTraj

Usage

1
chooseBreaks(breakpoints, numbreaks)

Arguments

breakpoints

Numeric list, output from splitTraj.

numbreaks

Integer. Number of breakpoints to be returned per trajectory. Breakpoints chosen will be evenly spaced from those defined by splitTraj.

Details

None.

Value

Returns a numeric list of breakpoints, one list per trajectory.

Author(s)

Diana H.P. Low, Efthimios Motakis

See Also

splitTraj

Examples

1
2
3
4
data(deltaGseg)
all_breakpoints<-splitTraj(traj1) #default splits=15 (i.e. 16 segments).
all_breakpoints
chooseBreaks(all_breakpoints,numbreaks=3) 

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.