maxstar

Natural log of a sum of exponentials
1.7K Downloads
Updated 30 Mar 2006

View License

maxstar(x) is the natural log of a sum of exponentials overcoming the numerical failure of log(sum(exp(x))) for extreme values of an argument vector x.

maxstar(x,[],dim) has the N-D array features of the MATLAB max function.
maxstar(x,w,dim) is the natural log of a weighted sum of exponentials.

The max* function is described in Lin & Costello, Error Control Coding, 2nd Edition, equation 12.127.

Cite As

Robert Dickson (2024). maxstar (https://www.mathworks.com/matlabcentral/fileexchange/10209-maxstar), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

Major revision to reproduce the N-D array features of the MATLAB max function, following a suggestion by John D'Errico.