Description Usage Arguments Value Examples
Get optimal cost for new segment
1 | getOptimalCost(qVec, sVec, start, end)
|
qVec |
Sum of squares up to the end of the data |
sVec |
Sum of the data |
start |
Beginning index |
end |
Ending index |
A vector of optimal costs
1 2 3 4 | testVec <- 1:30
qVec <- cumsum(testVec^2)
sVec <- cumsum(testVec)
cost <- getOptimalCost(qVec, sVec, 1, 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.