Unbalanced Haar wavelet which maximises the inner product
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)
a scalar in (0.5, 1]
The index where
abs(inner.prod.iter(x)) is maximised on the subinterval
n is the length of
If two or more maxima are found, the
med of their locations is returned.