Show
Ignore:
Timestamp:
08/16/09 18:13:31 (15 years ago)
Author:
smidl
Message:

removal of unused functions _e() and samplecond(,) and added documentation lines

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/base/bdmbase.h

    r532 r536  
    2929 
    3030typedef std::map<string, int> RVmap; 
     31//! Internal global variable storing sizes of RVs 
    3132extern ivec RV_SIZES; 
     33//! Internal global variable storing names of RVs 
    3234extern Array<string> RV_NAMES; 
    3335 
     
    160162                } 
    161163                //!@} 
    162  
    163                 //TODO why not inline and later?? 
    164164 
    165165                //! \name Algebra on Random Variables 
     
    192192                //!@{ 
    193193 
    194                 //! generate \c str from rv, by expanding sizes TODO to_string.. 
     194                //! generate \c str from rv, by expanding sizes  
    195195                str tostr() const; 
    196196                //! when this rv is a part of bigger rv, this function returns indices of self in the data vector of the bigger crv. 
     
    223223 
    224224                // TODO dodelat void to_setting( Setting &set ) const; 
    225  
    226225                //! Invalidate all named RVs. Use before initializing any RV instances, with care... 
    227226                static void clear_all(); 
     
    391390SHAREDPTR(epdf); 
    392391 
    393 //! Conditional probability density, e.g. modeling some dependencies. 
    394 //TODO Samplecond can be generalized 
     392//! Conditional probability density, e.g. modeling \f$ f( x | y) \f$, where \f$ x \f$ is random variable, \c rv, and \f$ y \f$ is conditioning variable, \c rvc. 
    395393class mpdf : public root 
    396394{ 
     
    405403 
    406404        protected: 
     405                //! set internal pointer \c ep to point to given \c iepdf 
    407406                void set_ep (epdf &iepdf) { 
    408407                        ep = &iepdf; 
    409408                } 
     409                //! set internal pointer \c ep to point to given \c iepdf 
    410410                void set_ep (epdf *iepdfp) { 
    411411                        ep = iepdfp; 
     
    487487SHAREDPTR(mpdf); 
    488488 
     489//! Mpdf with internal epdf that is modified by function \c condition 
    489490template <class EPDF> 
    490491class mpdf_internal: public mpdf 
    491492{ 
    492493        protected : 
     494                //! Internal epdf used for sampling 
    493495                EPDF iepdf; 
    494496        public: 
     
    555557                //! Constructor 
    556558                datalink() : downsize (0), upsize (0) { } 
     559                //! Conevnience constructor 
    557560                datalink (const RV &rv, const RV &rv_up) { 
    558561                        set_connection (rv, rv_up); 
     
    607610                //! Constructor 
    608611                datalink_m2e() : condsize (0) { } 
    609  
     612                //! Set connection between vectors 
    610613                void set_connection (const RV &rv, const RV &rvc, const RV &rv_up) { 
    611614                        datalink::set_connection (rv, rv_up); 
     
    621624                        return tmp; 
    622625                } 
    623  
     626                //! Copy corresponding values to Up.condition 
    624627                void pushup_cond (vec &val_up, const vec &val, const vec &cond) { 
    625628                        it_assert_debug (downsize == val.length(), "Wrong val"); 
     
    643646                //! Constructor 
    644647                datalink_m2m() {}; 
     648                //! Set connection between the vectors 
    645649                void set_connection (const RV &rv, const RV &rvc, const RV &rv_up, const RV &rvc_up) { 
    646650                        datalink_m2e::set_connection (rv, rvc, rv_up); 
     
    713717class mepdf : public mpdf 
    714718{ 
    715  
     719                //! Internal shared pointer to epdf 
    716720                shared_ptr<epdf> iepdf; 
    717721        public: 
    718722                //!Default constructor 
    719723                mepdf() { } 
    720  
     724                //! Set internal shared pointer 
    721725                mepdf (shared_ptr<epdf> em) { 
    722726                        iepdf = em; 
     
    893897                        return NULL; 
    894898                }; 
    895                 //!Constructs a conditional density 1-step ahead predictor \f$ f(d_{t+1} |d_{t+h-1}, \ldots d_{t}) 
     899                //!Constructs conditional density of 1-step ahead predictor \f$ f(d_{t+1} |d_{t+h-1}, \ldots d_{t}) \f$ 
    896900                virtual mpdf* predictor() const { 
    897901                        it_error ("Not implemented"); 
     
    939943                } 
    940944                virtual const epdf& posterior() const = 0; 
    941                 virtual const epdf* _e() const = 0; 
    942945                //!@} 
    943946