HarmonicMean: The HarmonicMean atom.

View source: R/atoms.R

HarmonicMeanR Documentation

The HarmonicMean atom.

Description

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

Usage

HarmonicMean(x)

Arguments

x

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

Value

The harmonic mean of x.


CVXR documentation built on Oct. 31, 2022, 1:07 a.m.