Piecewise Linear Segmentation by Dynamic Programming
Theory | Recursion | Scoring Functions | Backtracing | Segment Length Restrictions | Usage | Basic | get example data oddata - bacterial growth measured as optical density OD | NOTE: the scoring function results are stored as a matrix for re-use below | Fine-tuning Segment Length: The Penalty Parameter $P$ | Scoring Functions: $-\mathrm | Data Example: $P<0$ and Correlation-based Scoring. | Vertical and Horizontal Lines with Zero Variance. | Discrete Jumps between Segments | Custom Scoring Functions | Benchmarking | Related Packages and Algorithms | Dynamic Programming in base R | Incremental Linear Regression | Least-Squares Method | Incremental Calculation | Useful Definitions | Variance & Covariance | Correlation and R-squared | Standard Deviation & Standard Error | Incremental Calculation of Scoring Functions | Coefficient of Determination: $R^2$ | Variance of Residuals: $\mathrm | Special Cases: $\mathrm | References