Weight class.  
 More...
#include <vsmc/core/weight.hpp>
 | 
|   | Weight (size_type N) | 
|   | 
| template<typename InputIter >  | 
| void  | add_log (InputIter first) | 
|   | 
| void  | add_log (const double *first) | 
|   | 
| void  | add_log (double *first) | 
|   | 
| template<typename RandomIter >  | 
| void  | add_log (RandomIter first, int stride) | 
|   | 
| const double *  | data () const  | 
|   | 
| template<typename URNG >  | 
| size_type  | draw (URNG &eng) const  | 
|   | 
| double  | ess () const  | 
|   | 
| template<typename InputIter >  | 
| void  | mul (InputIter first) | 
|   | 
| void  | mul (const double *first) | 
|   | 
| void  | mul (double *first) | 
|   | 
| template<typename RandomIter >  | 
| void  | mul (RandomIter first, int stride) | 
|   | 
| void  | read_resample_weight (double *first) const  | 
|   | 
| template<typename OutputIter >  | 
| void  | read_weight (OutputIter first) const  | 
|   | 
| template<typename RandomIter >  | 
| void  | read_weight (RandomIter first, int stride) const  | 
|   | 
| const double *  | resample_data () const  | 
|   | 
| size_type  | resample_size () const  | 
|   | 
| template<typename InputIter >  | 
| void  | set (InputIter first) | 
|   | 
| template<typename RandomIter >  | 
| void  | set (RandomIter first, int stride) | 
|   | 
| void  | set_equal () | 
|   | 
| template<typename InputIter >  | 
| void  | set_log (InputIter first) | 
|   | 
| template<typename RandomIter >  | 
| void  | set_log (RandomIter first, int stride) | 
|   | 
| size_type  | size () const  | 
|   | 
Weight class. 
Definition at line 67 of file weight.hpp.
 
template<typename InputIter > 
  
  
      
        
          | void vsmc::Weight::add_log  | 
          ( | 
          InputIter  | 
          first | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | void vsmc::Weight::add_log  | 
          ( | 
          const double *  | 
          first | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | void vsmc::Weight::add_log  | 
          ( | 
          double *  | 
          first | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
template<typename RandomIter > 
  
  
      
        
          | void vsmc::Weight::add_log  | 
          ( | 
          RandomIter  | 
          first,  | 
         
        
           | 
           | 
          int  | 
          stride  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | const double* vsmc::Weight::data  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
template<typename URNG > 
  
  
      
        
          | size_type vsmc::Weight::draw  | 
          ( | 
          URNG &  | 
          eng | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | double vsmc::Weight::ess  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
template<typename InputIter > 
  
  
      
        
          | void vsmc::Weight::mul  | 
          ( | 
          InputIter  | 
          first | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | void vsmc::Weight::mul  | 
          ( | 
          const double *  | 
          first | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | void vsmc::Weight::mul  | 
          ( | 
          double *  | 
          first | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
template<typename RandomIter > 
  
  
      
        
          | void vsmc::Weight::mul  | 
          ( | 
          RandomIter  | 
          first,  | 
         
        
           | 
           | 
          int  | 
          stride  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | double* vsmc::Weight::mutable_data  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotected   | 
  
 
 
  
  
      
        
          | void vsmc::Weight::read_resample_weight  | 
          ( | 
          double *  | 
          first | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
template<typename OutputIter > 
  
  
      
        
          | void vsmc::Weight::read_weight  | 
          ( | 
          OutputIter  | 
          first | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
template<typename RandomIter > 
  
  
      
        
          | void vsmc::Weight::read_weight  | 
          ( | 
          RandomIter  | 
          first,  | 
         
        
           | 
           | 
          int  | 
          stride  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | const double* vsmc::Weight::resample_data  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | size_type vsmc::Weight::resample_size  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
template<typename InputIter > 
  
  
      
        
          | void vsmc::Weight::set  | 
          ( | 
          InputIter  | 
          first | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
template<typename RandomIter > 
  
  
      
        
          | void vsmc::Weight::set  | 
          ( | 
          RandomIter  | 
          first,  | 
         
        
           | 
           | 
          int  | 
          stride  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | void vsmc::Weight::set_equal  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
template<typename InputIter > 
  
  
      
        
          | void vsmc::Weight::set_log  | 
          ( | 
          InputIter  | 
          first | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
template<typename RandomIter > 
  
  
      
        
          | void vsmc::Weight::set_log  | 
          ( | 
          RandomIter  | 
          first,  | 
         
        
           | 
           | 
          int  | 
          stride  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   |