Changeset 205 for bdm/stat/libEF.h
- Timestamp:
- 11/10/08 15:40:30 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/stat/libEF.h
r204 r205 200 200 ldmat& _V() {return V;} 201 201 //! 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;} 203 206 void pow ( double p ) {V*=p;nu*=p;}; 204 207 }; … … 520 523 //! Set sample 521 524 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);}; 522 527 //! Potentially dangerous, use with care. 523 528 vec& _w() {return w;}; 529 //! Potentially dangerous, use with care. 530 const vec& _w() const {return w;}; 524 531 //! access function 525 532 Array<vec>& _samples() {return samples;}; 533 //! access function 534 const Array<vec>& _samples() const {return samples;}; 526 535 //! 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. 527 536 ivec resample ( RESAMPLING_METHOD method = SYSTEMATIC );