vi_total_variation: The Total Variation Csiszar-function in log-space

View source: R/vi-functions.R

vi_total_variationR Documentation

The Total Variation Csiszar-function in log-space

Description

A Csiszar-function is a member of F = { f:R_+ to R : f convex }.

Usage

vi_total_variation(logu, name = NULL)

Arguments

logu

float-like Tensor representing log(u) from above.

name

name prefixed to Ops created by this function.

Details

The Total-Variation Csiszar-function is:

f(u) = 0.5 |u - 1|

Warning: this function makes non-log-space calculations and may therefore be numerically unstable for |logu| >> 0.

Value

total_variation_of_u: float-like Tensor of the Csiszar-function evaluated at u = exp(logu).

See Also

Other vi-functions#': vi_t_power(), vi_triangular()


rstudio/tfprobability documentation built on Sept. 11, 2022, 4:32 a.m.