JointSampler.h
Go to the documentation of this file.00001 /**<!--------------------------------------------------------------------> 00002 @class JointSampler 00003 @author Travis Fischer (fisch0920@gmail.com) 00004 @author Matthew Jacobs (jacobs.mh@gmail.com) 00005 @date Fall 2008 00006 00007 @brief 00008 Represents an abstract joint random variable that can be sampled 00009 according to several discrete/continuous probability distribution(s) 00010 <!-------------------------------------------------------------------->**/ 00011 00012 #ifndef JOINT_SAMPLER_H_ 00013 #define JOINT_SAMPLER_H_ 00014 00015 #include <stats/Sampler.h> 00016 00017 DECLARE_STL_TYPEDEF(std::vector<Sampler*>, SamplerList); 00018 00019 class JointSampler : public Sampler { 00020 00021 public: 00022 ///@name Constructors 00023 //@{----------------------------------------------------------------- 00024 00025 inline explicit JointSampler(const SamplerList &randomVars) 00026 : Sampler(), m_samplers(randomVars) 00027 { } 00028 00029 inline JointSampler(const JointSampler ©) 00030 : Sampler(copy), m_samplers(copy.m_samplers) 00031 { } 00032 00033 inline JointSampler() 00034 : Sampler() 00035 { } 00036 00037 virtual ~JointSampler() 00038 { } 00039 00040 00041 //@}----------------------------------------------------------------- 00042 00043 protected: 00044 SamplerList m_samplers; 00045 }; 00046 00047 #endif // JOINT_SAMPLER_H_ 00048
Generated on 28 Feb 2009 for Milton by
1.5.6