Lehmer mean

In mathematics, the Lehmer mean of a tuple of positive real numbers, named after Derrick Henry Lehmer,[1] is defined as:

The weighted Lehmer mean with respect to a tuple of positive weights is defined as:

The Lehmer mean is an alternative to power means for interpolating between minimum and maximum via arithmetic mean and harmonic mean.

Properties

The derivative of is non-negative

thus this function is monotonic and the inequality

holds.

The derivative of the weighted Lehmer mean is:

Special cases

  • is the minimum of the elements of .
  • is the harmonic mean.
  • is the geometric mean of the two values and .
  • is the arithmetic mean.
  • is the contraharmonic mean.
  • is the maximum of the elements of .
Sketch of a proof: Without loss of generality let be the values which equal the maximum. Then

Applications

Signal processing

Like a power mean, a Lehmer mean serves a non-linear moving average which is shifted towards small signal values for small and emphasizes big signal values for big . Given an efficient implementation of a moving arithmetic mean called smooth you can implement a moving Lehmer mean according to the following Haskell code.

 lehmerSmooth :: Floating a => ([a] -> [a]) -> a -> [a] -> [a]
 lehmerSmooth smooth p xs = zipWith (/)
                                     (smooth (map (**p) xs))
                                     (smooth (map (**(p-1)) xs))

Gonzalez and Woods call this a "contraharmonic mean filter" described for varying values of p (however, as above, the contraharmonic mean can refer to the specific case ). Their convention is to substitute p with the order of the filter Q:

Q=0 is the arithmetic mean. Positive Q can reduce pepper noise and negative Q can reduce salt noise.[2]

gollark: If I had a stroke, it would look like asklrasit qwuio58141uouqoqw4h3l4i34v2u3i5 25h23u5 23ui52u3bi5h2u5 23u5h2iou52, or possibly [nothing visible on discord because of randomly spasming or something and not really typing correctly], not ħħħħħ.
gollark: > mostly
gollark: Wait, wouldn't that either just end up hardcoding a big list of sites *or* end up just having to pull from search engines?
gollark: > also can you please pm me the connection finder tool (you write the username and it finds accounts of the same person on other sites)ħħħħħ
gollark: Inconveniently enough, both of them rely heavily on mutable state and are hard to test.

See also

Notes

  1. P. S. Bullen. Handbook of means and their inequalities. Springer, 1987.
  2. Gonzalez, Rafael C.; Woods, Richard E. (2008). "Chapter 5 Image Restoration and Reconstruction". Digital Image Processing (3 ed.). Prentice Hall. ISBN 9780131687288.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.