geo_mean: (Weighted) geometric mean of a vector

View source: R/094_atoms_geo_mean.R

geo_meanR Documentation

(Weighted) geometric mean of a vector

Description

(Weighted) geometric mean of a vector

Usage

geo_mean(x, p = NULL, max_denom = 1024L, approx = TRUE)

Arguments

x

An Expression (vector)

p

Numeric weight vector (default: uniform)

max_denom

Maximum denominator for rational approximation

approx

If TRUE (default), use SOC approximation. If FALSE, use exact power cone.

Value

A GeoMean or GeoMeanApprox atom


CVXR documentation built on March 6, 2026, 9:10 a.m.