Learn R Programming

CVXR (version 1.9.1)

cvxr_var: Variance of an expression

Description

Computes the variance. Only supports full reduction (axis = NULL).

Usage

cvxr_var(x, axis = NULL, keepdims = FALSE, ddof = 0)

Value

An Expression representing the variance.

Arguments

x

An Expression or numeric value.

axis

NULL only (axis reduction not yet supported).

keepdims

Logical; keep reduced dimension?

ddof

Degrees of freedom correction (default 0, population variance).