Learn R Programming

clustMD (version 1.2.2)

stable.probs: 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)

Value

The log of the sum of the elements of s

Arguments

s

a numeric vector.