View source: R/inner.prod.max.p.R
inner.prod.max.p | R Documentation |
The function finds the Unbalanced Haar vector which yields the largest (in absolute value) inner product with the input vector, amongst those Unbalanced Haar vectors whose breakpoint is located between 100(1-p)% and 100p% of their support.
inner.prod.max.p(x, p = 0.8)
x |
a vector |
p |
a scalar in (0.5, 1] |
The index where abs(inner.prod.iter(x))
is maximised on the subinterval
(1+floor((1-p)*n)):ceiling(p*n)
, where n
is the length of x
.
If two or more maxima are found, the med
of their locations is returned.
Piotr Fryzlewicz
inner.prod.iter
, med
, inner.prod.max
inner.prod.max.p(c(rep(0, 100), rep(1, 200)), .55)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.