Medusa  1.1
Coordinate Free Mehless Method implementation
FindBalancedSupport.cpp
Go to the documentation of this file.
2 
8 namespace mm {
9 
10 FindBalancedSupport::FindBalancedSupport(int min_support, int max_support) :
11  min_support_(min_support), max_support_(max_support), for_which_(), search_among_(),
12  force_self_(false) {}
13 
15  this->for_which_ = std::move(for_which);
16  return *this;
17 }
18 
20  this->search_among_ = std::move(search_among);
21  return *this;
22 }
23 
25  force_self_ = b;
26  return *this;
27 }
28 
30  min_support_ = size; return *this;
31 }
32 
34  max_support_ = size; return *this;
35 }
36 
37 } // namespace mm
mm
Root namespace for the whole library.
Definition: Gaussian.hpp:14
mm::FindBalancedSupport::min_support_
int min_support_
Minimal support size.
Definition: FindBalancedSupport_fwd.hpp:29
mm::FindBalancedSupport::forceSelf
FindBalancedSupport & forceSelf(bool b=true)
Put each node as the first of its support, even if it is not included in searchAmong().
Definition: FindBalancedSupport.cpp:24
mm::FindBalancedSupport::search_among_
Range< int > search_among_
Search only among these nodes.
Definition: FindBalancedSupport_fwd.hpp:32
mm::FindBalancedSupport::minSupportSize
FindBalancedSupport & minSupportSize(int size)
Set minimum support size. This overrides the size set in constructor.
Definition: FindBalancedSupport.cpp:29
mm::FindBalancedSupport::max_support_
int max_support_
Maximal support size.
Definition: FindBalancedSupport_fwd.hpp:30
mm::FindBalancedSupport::force_self_
bool force_self_
Force each node as the first element of its support.
Definition: FindBalancedSupport_fwd.hpp:33
mm::indexes_t
std::vector< int > indexes_t
Class representing a collection of indices.
Definition: Config.hpp:36
mm::FindBalancedSupport
Class representing the engine for finding directionally balanced supports.
Definition: FindBalancedSupport_fwd.hpp:27
mm::FindBalancedSupport::maxSupportSize
FindBalancedSupport & maxSupportSize(int size)
Set maximal support size. This overrides the size set in constructor.
Definition: FindBalancedSupport.cpp:33
mm::FindBalancedSupport::searchAmong
FindBalancedSupport & searchAmong(indexes_t search_among)
Search only among given nodes.
Definition: FindBalancedSupport.cpp:19
mm::FindBalancedSupport::FindBalancedSupport
FindBalancedSupport(int min_support, int max_support)
Constructs an engine with given min and max support sizes.
Definition: FindBalancedSupport.cpp:10
mm::FindBalancedSupport::forNodes
FindBalancedSupport & forNodes(indexes_t for_which)
Find support only for these nodes.
Definition: FindBalancedSupport.cpp:14
FindBalancedSupport.hpp
mm::FindBalancedSupport::for_which_
Range< int > for_which_
Find support only for these nodes.
Definition: FindBalancedSupport_fwd.hpp:31