.. _program_listing_file_lib_Random_Variables.hpp: Program Listing for File Random_Variables.hpp ============================================= |exhale_lsh| :ref:`Return to documentation for file ` (``lib/Random_Variables.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include #include #include class RV { public: std::string name; double value; std::vector dataset; RV(std::string name) : name(name) {} double sample(); }; class LatentVar : public RV { public: double partial_t; LatentVar() : RV("") {} LatentVar(std::string name) : RV(name) {} };