32 #ifndef WEIGHTEDSAMPLE_H
33 #define WEIGHTEDSAMPLE_H
82 template <
typename S>
friend ostream &
operator<< (ostream & stream,
116 template <
typename S> ostream &
operator<< (ostream & stream,
119 stream <<
"WeightedSample Value = " << (
Sample<S> &) mws
120 <<
"Weight = " << mws.
Weight << endl;
129 op1 =
this; op2 = & my_sample;
139 Sample<T> * op1;
const Sample<T> * op2;
140 op1 =
this; op2 = & my_sample;
WeightedSample< T > & operator=(const WeightedSample< T > &my_sample)
Operator =.
std::basic_ostream< E, T > & operator<<(std::basic_ostream< E, T > &os, const vector_expression< VE > &v)
output stream operator for vector expressions
void WeightSet(double weight)
Set the weight.
double WeightGet() const
Get the weight.
WeightedSample(int dimension=0)
Constructor.
virtual ~WeightedSample()
Destructor.
friend ostream & operator<<(ostream &stream, WeightedSample< S > &mws)
Print a weighted sample.