.. _file_src_pdfs_PDFSegmentPowerlaw.hpp: File PDFSegmentPowerlaw.hpp =========================== |exhale_lsh| :ref:`Parent directory ` (``src/pdfs``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS Class to represent a power-law segment of a PDF. .. contents:: Contents :local: :backlinks: none Definition (``src/pdfs/PDFSegmentPowerlaw.hpp``) ------------------------------------------------ .. toctree:: :maxdepth: 1 program_listing_file_src_pdfs_PDFSegmentPowerlaw.hpp.rst Detailed Description -------------------- Mark Krumholz This class represents a power-law segment of a PDF, defined by a lower and upper limit, and a power-law index. It implements the interface defined by the PDFSegment class, providing methods to evaluate the PDF at a given point and to sample a random value from the PDF segment according to the power-law distribution. 2024-06-12 Copyright (c) 2026 Mark Krumholz. All rights reserved. Includes -------- - ``../utils/RandomDist.hpp`` - ``../utils/RngThread.hpp`` - ``PDFCommons.hpp`` (:ref:`file_src_pdfs_PDFCommons.hpp`) - ``PDFSegment.hpp`` (:ref:`file_src_pdfs_PDFSegment.hpp`) - ``algorithm`` - ``cmath`` - ``fstream`` - ``toml.hpp`` Included By ----------- - :ref:`file_src_core_Galaxy.hpp` Namespaces ---------- - :ref:`namespace_pdfs` Classes ------- - :ref:`exhale_class_classpdfs_1_1PDFSegmentPowerlaw`