Learn R Programming

CVXR (version 1.0-14)

HarmonicMean: The HarmonicMean atom.

Description

The harmonic mean of x, \(\frac{1}{n} \sum_{i=1}^n x_i^{-1}\), where n is the length of x.

Usage

HarmonicMean(x)

Value

The harmonic mean of x.

Arguments

x

An expression or number whose harmonic mean is to be computed. Must have positive entries.