largestContinuousMinimumC | R Documentation |
Find the run of minimum cost
with the largest size
.
This function use a linear time C implementation,
and is meant for internal use.
Use targetIntervals
for real data.
largestContinuousMinimumC(cost,
size)
cost |
numeric vector of |
size |
numeric vector of interval |
Integer vector length 2 (start and end of target interval relative
to cost
and size
).
Toby Dylan Hocking <toby.hocking@r-project.org> [aut, cre]
library(penaltyLearning)
data(neuroblastomaProcessed, envir=environment())
one.problem.error <-
neuroblastomaProcessed$errors[profile.id=="4" & chromosome=="1"]
indices <- one.problem.error[, largestContinuousMinimumC(
errors, max.log.lambda-min.log.lambda)]
one.problem.error[indices[["start"]]:indices[["end"]],]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.