Show
Ignore:
Timestamp:
05/27/10 23:07:49 (14 years ago)
Author:
smidl
Message:

Flatten has an extra argument

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/estim/mixtures.h

    r1009 r1013  
    9898        //! Recursive EM-like algorithm (QB-variant), see Karny et. al, 2006 
    9999        void bayes ( const vec &yt, const vec &cond ); 
    100         //! EM algorithm 
    101         void bayes ( const mat &yt, const vec &cond ); 
    102100        //! batch weighted Bayes rule 
    103         double bayes_batch ( const mat &yt, const mat &cond, const vec &wData ); 
     101        double bayes_batch_weighted ( const mat &yt, const mat &cond, const vec &wData ); 
     102        double bayes_batch ( const mat &yt, const mat &cond){ 
     103                return bayes_batch_weighted(yt,cond,ones(yt.cols())); 
     104        }; 
    104105        double logpred ( const vec &yt, const vec &cond ) const; 
    105106        //! return correctly typed posterior (covariant return) 
     
    110111        emix* epredictor(const vec &cond=vec()) const; 
    111112        //! Flatten the density as if it was not estimated from the data 
    112         void flatten ( const BMEF* M2 ); 
     113        void flatten ( const BMEF* M2, double weight ); 
    113114        //! Access function 
    114115        BMEF* _Coms ( int i ) {