Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note: this function uses the term 'radius', but the histogramming is completely general | |
import numpy as np | |
def RadialBin(radii, values, bin_edges, bin_indices=None): | |
""" | |
Radial histogramming that supports fast re-evaluation | |
for the same `radii` with new `values` by passing back `bin_indices`. | |
Parameters |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swot: https://github.com/jcoupon/swot/ | |
corrfunc: https://github.com/manodeep/Corrfunc | |
To test the speed and agreement of swot vs corrfuc, we generated random | |
datasets of increasing size and measured the w(theta) autocorrelation function. | |
Swot has an approximation parameter 'OA' (opening angle) that critically impacts its runtime. | |
We tried OA=0.03 and OA='no'. However, even the conservative value of OA=0.03 | |
caused >10% errors in wtheta for this randomized configuration. Thus, it should | |
be used with caution. |
NewerOlder