stable.probs: Stable computation of the log of a sum

View source: R/clustMD_UtilityFunctions.R

stable.probsR Documentation

Stable computation of the log of a sum

Description

Function takes a numeric vector and returns the log of the sum of the elements of that vector. Calculations are done on the log scale for stability.

Usage

stable.probs(s)

Arguments

s

a numeric vector.

Value

The log of the sum of the elements of s


clustMD documentation built on Jan. 27, 2026, 5:10 p.m.