View source: R/103_atoms_geo_mean.R
| geo_mean | R Documentation |
The (weighted) geometric mean of the entries of x, of all of them or of
each row or column.
geo_mean(
x,
p = NULL,
max_denom = 1024L,
approx = TRUE,
axis = NULL,
keepdims = FALSE
)
x |
An Expression of any shape. With |
p |
Numeric weight vector (default: uniform), one weight per entry
being reduced: |
max_denom |
Maximum denominator for rational approximation |
approx |
If TRUE (default), use SOC approximation. If FALSE, use exact power cone. |
axis |
|
keepdims |
Keep the reduced dimension with length one. |
A GeoMean or GeoMeanApprox atom: a scalar when axis = NULL,
otherwise one geometric mean per row or column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.