Changeset 205 for bdm/stat/libEF.h

Show
Ignore:
Timestamp:
11/10/08 15:40:30 (16 years ago)
Author:
smidl
Message:

merger posledni verze

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/stat/libEF.h

    r204 r205  
    200200        ldmat& _V() {return V;} 
    201201        //! returns a pointer to the internal statistics. Use with Care! 
    202         double& _nu() {return nu;} 
     202        const ldmat& _V() const {return V;} 
     203        //! returns a pointer to the internal statistics. Use with Care! 
     204        double& _nu()  {return nu;} 
     205        const double& _nu() const {return nu;} 
    203206        void pow ( double p ) {V*=p;nu*=p;}; 
    204207}; 
     
    520523        //! Set sample 
    521524        void set_samples ( const epdf* pdf0 ); 
     525        //! Set sample 
     526        void set_n ( int n0, bool copy=true ){w.set_size(n0,copy);samples.set_size(n0,copy);}; 
    522527        //! Potentially dangerous, use with care. 
    523528        vec& _w()  {return w;}; 
     529        //! Potentially dangerous, use with care. 
     530        const vec& _w() const {return w;}; 
    524531        //! access function 
    525532        Array<vec>& _samples() {return samples;}; 
     533        //! access function 
     534        const Array<vec>& _samples() const {return samples;}; 
    526535        //! Function performs resampling, i.e. removal of low-weight samples and duplication of high-weight samples such that the new samples represent the same density. 
    527536        ivec resample ( RESAMPLING_METHOD method = SYSTEMATIC );