Rosetta 3.3
Public Member Functions
numeric::random::WeightedSampler Class Reference

#include <WeightedSampler.hh>

Collaboration diagram for numeric::random::WeightedSampler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 WeightedSampler ()
 Constructor.
 WeightedSampler (numeric::Size num_weights)
 Constructor.
 WeightedSampler (utility::vector1< numeric::Real > const &weights)
 Constructor.
virtual ~WeightedSampler ()
 Destructor.
 WeightedSampler (WeightedSampler const &)
 Copy constructor.
WeightedSampleroperator= (WeightedSampler const &)
 Copy operator.
utility::vector1
< numeric::Real > const & 
weights () const
void weights (utility::vector1< numeric::Real > const &weights)
void add_weight (numeric::Real weight)
void set_weight (numeric::Size weight_num, numeric::Real weight)
void clear ()
numeric::Size size () const
void resize (numeric::Size num_weights, numeric::Real default_weight=0)
numeric::Size random_sample (numeric::Real randnum)
numeric::Size random_sample (numeric::random::RandomGenerator &rg)

Constructor & Destructor Documentation

numeric::random::WeightedSampler::WeightedSampler ( )

Constructor.

numeric::random::WeightedSampler::WeightedSampler ( numeric::Size  num_weights)

Constructor.

numeric::random::WeightedSampler::WeightedSampler ( utility::vector1< numeric::Real > const &  weights)

Constructor.

numeric::random::WeightedSampler::~WeightedSampler ( ) [virtual]

Destructor.

numeric::random::WeightedSampler::WeightedSampler ( WeightedSampler const &  weighted_sampler)

Copy constructor.


Member Function Documentation

void numeric::random::WeightedSampler::add_weight ( numeric::Real  weight) [inline]
void numeric::random::WeightedSampler::clear ( ) [inline]
WeightedSampler & numeric::random::WeightedSampler::operator= ( WeightedSampler const &  weighted_sampler)

Copy operator.

numeric::Size numeric::random::WeightedSampler::random_sample ( numeric::Real  randnum)

References color_pdb::i.

Referenced by random_sample().

numeric::Size numeric::random::WeightedSampler::random_sample ( numeric::random::RandomGenerator rg)
void numeric::random::WeightedSampler::resize ( numeric::Size  num_weights,
numeric::Real  default_weight = 0 
) [inline]
void numeric::random::WeightedSampler::set_weight ( numeric::Size  weight_num,
numeric::Real  weight 
) [inline]
numeric::Size numeric::random::WeightedSampler::size ( ) const [inline]
utility::vector1<numeric::Real> const& numeric::random::WeightedSampler::weights ( ) const [inline]

Referenced by weights().

void numeric::random::WeightedSampler::weights ( utility::vector1< numeric::Real > const &  weights) [inline]

References weights().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines