Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cs-401r:log-domain-computations [2014/11/03 17:46]
ringger [More arguments: logSum()]
cs-401r:log-domain-computations [2014/11/03 17:47] (current)
ringger [More arguments: logSum()]
Line 70: Line 70:
  
  double logSum(a list of logarithmic quantities L)  double logSum(a list of logarithmic quantities L)
- if length(L) == 0 
- return –Infinity 
- if length(L) == 1 
- return L[0] 
- if length(L) == 2 
- return logAdd(L[0],​ L[1]) 
  logResult = Double.NEGATIVE_INFINITY  logResult = Double.NEGATIVE_INFINITY
  foreach logX in L:  foreach logX in L:
cs-401r/log-domain-computations.txt · Last modified: 2014/11/03 17:47 by ringger
Back to top
CC Attribution-Share Alike 4.0 International
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0