CMS 3D CMS Logo

List of all members | Public Member Functions
TrivialWeightEstimator< T > Class Template Reference

#include <TrivialWeightEstimator.h>

Inheritance diagram for TrivialWeightEstimator< T >:
WeightEstimator< T >

Public Member Functions

TrivialWeightEstimatorclone () const override
 
double weight (const std::vector< const T * > &) const override
 
- Public Member Functions inherited from WeightEstimator< T >
virtual ~WeightEstimator ()
 

Detailed Description

template<class T>
class TrivialWeightEstimator< T >

trivial WeightEstimator that returns 1.

Definition at line 13 of file TrivialWeightEstimator.h.

Member Function Documentation

template<class T>
TrivialWeightEstimator* TrivialWeightEstimator< T >::clone ( void  ) const
inlineoverridevirtual

Implements WeightEstimator< T >.

Definition at line 21 of file TrivialWeightEstimator.h.

22  {
23  return new TrivialWeightEstimator<T> ( *this );
24  };
template<class T>
double TrivialWeightEstimator< T >::weight ( const std::vector< const T * > &  ) const
inlineoverridevirtual

Implements WeightEstimator< T >.

Definition at line 16 of file TrivialWeightEstimator.h.

17  {
18  return 1.0;
19  }