Pull Request #3 Handle the limit of p = 0 in p log2 p

This patch defines a helper function, _xlog2x(x), that calculates
x * log2(x) but handles the case x == 0 by returning 0 rather than nan.
This is needed if the power spectrum has any component that is exactly
zero: in particular, if the f = 0 component is zero.

jftsang

Pull request event #17 passed

  • Ran for
  • New branch build
AMD64
no language set
Git

Sorry, we're having troubles fetching jobs. Please try again later.