inner.prod.max: Unbalanced Haar wavelet which maximises the inner product

View source: R/inner.prod.max.R

inner.prod.maxR Documentation

Unbalanced Haar wavelet which maximises the inner product

Description

The function finds the Unbalanced Haar vector which yields the largest (in absolute value) inner product with the input vector.

Usage

inner.prod.max(x)

Arguments

x

a vector

Value

The index where abs(inner.prod.iter(x)) is maximised. If two or more maxima are found, the med of their locations is returned.

Author(s)

Piotr Fryzlewicz

See Also

inner.prod.iter, med, inner.prod.max.p

Examples

inner.prod.max(c(rep(0, 100), rep(1, 200)))

unbalhaar documentation built on April 19, 2022, 5:05 p.m.