pith. sign in

arxiv: 1805.09550 · v2 · pith:VE57K7VWnew · submitted 2018-05-24 · 🌌 astro-ph.CO

A Short Research Note on Calculating Exact Distribution Functions and Random Sampling for the 3D NFW Profile

classification 🌌 astro-ph.CO
keywords distributionnoteprofilesamplinganalyticcodecommonfunction
0
0 comments X
read the original abstract

In this short note we publish the analytic quantile function for the Navarro, Frenk & White (NFW) profile. All known published and coded methods for sampling from the 3D NFW PDF use either accept-reject, or numeric interpolation (sometimes via a lookup table) for projecting random Uniform samples through the quantile distribution function to produce samples of the radius. This is a common requirement in N-body initial condition (IC), halo occupation distribution (HOD), and semi-analytic modelling (SAM) work for correctly assigning particles or galaxies to positions given an assumed concentration for the NFW profile. Using this analytic description allows for much faster and cleaner code to solve a common numeric problem in modern astronomy. We release R and Python versions of simple code that achieves this sampling, which we note is trivial to reproduce in any modern programming language.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Assembly bias and the redshift evolution of intrinsic alignments for LRGs

    astro-ph.CO 2026-07 unverdicted novelty 6.0

    FLAMINGO simulation analysis shows IA amplitude for LRGs depends on halo assembly history and exhibits redshift evolution beyond mass effects, yielding an empirical mass-redshift model.