Changeset 175 for bdm/stat/libBM.h

Show
Ignore:
Timestamp:
10/09/08 11:32:11 (16 years ago)
Author:
smidl
Message:

mprod is now based on compositepdf

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/stat/libBM.h

    r170 r175  
    233233}; 
    234234 
     235//!\brief Abstract composition of pdfs, a base for specific classes  
     236class compositepdf{ 
     237        protected: 
     238                //!Number of mpdfs in the composite 
     239                int n; 
     240                //! Elements of composition 
     241                Array<mpdf*> mpdfs; 
     242                //! Indeces of rvs in common rv 
     243                Array<ivec> rvsinrv; 
     244                //! Indeces of rvc in common rv 
     245                Array<ivec> rvcsinrv; 
     246        public: 
     247                compositepdf(Array<mpdf*> A0): n(A0.length()), mpdfs(A0), rvsinrv(n), rvcsinrv(n){}; 
     248                RV getrv(bool checkoverlap=false); 
     249                void setrvc(const RV &rv, RV &rvc); 
     250                void setindices(const RV &rv); 
     251                void setrvcinrv(const RV &rvc, Array<ivec> &rvcind); 
     252}; 
     253 
    235254/*! \brief Abstract class for discrete-time sources of data. 
    236255