HOPS
HOPS class reference
MHO_MinWeight.hh
Go to the documentation of this file.
1 #ifndef MHO_MinWeight_HH__
2 #define MHO_MinWeight_HH__
3 
4 #include <cctype>
5 #include <cmath>
6 #include <complex>
7 #include <map>
8 #include <vector>
9 
10 #include "MHO_Constants.hh"
11 #include "MHO_Message.hh"
12 
14 #include "MHO_TableContainer.hh"
15 #include "MHO_UnaryOperator.hh"
16 
17 namespace hops
18 {
19 
31 class MHO_MinWeight: public MHO_UnaryOperator< weight_type >
32 {
33  public:
34  MHO_MinWeight();
35  virtual ~MHO_MinWeight();
36 
42  void SetMinWeight(double min_weight) { fMinWeight = min_weight; }
43 
44  protected:
52  virtual bool ExecuteInPlace(weight_type* in) override;
53 
54  private:
55  double fMinWeight;
56 };
57 
58 } // namespace hops
59 
60 #endif
Class MHO_MinWeight.
Definition: MHO_MinWeight.hh:32
MHO_MinWeight()
Definition: MHO_MinWeight.cc:6
virtual bool ExecuteInPlace(weight_type *in) override
Zeroes out weights in-place for all values less than a specified minimum.
Definition: MHO_MinWeight.cc:13
virtual ~MHO_MinWeight()
Definition: MHO_MinWeight.cc:11
void SetMinWeight(double min_weight)
Setter for min weight.
Definition: MHO_MinWeight.hh:42
Class MHO_UnaryOperator.
Definition: MHO_UnaryOperator.hh:24
Definition: MHO_AdhocFlagging.hh:18