a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
BOL::BalancedPartitionCandidate Class Reference

#include <BalancedPartitionCandidate.hpp>

Detailed Description

Definition at line 25 of file BalancedPartitionCandidate.hpp.

Public Member Functions

 BalancedPartitionCandidate ()
 
void buildFrom (BalancedPartitionCandidate const &basePartition, unsigned int const extraIndex, double const candidateWeight, double const inverseWeight)
 
double getInverseWeight () const
 
std::vector< unsigned int > & getVector ()
 
double getWeight () const
 
void setInverseWeight (double const inverseWeight)
 
void setWeight (double const candidateWeight)
 
 ~BalancedPartitionCandidate ()
 

Protected Attributes

double candidateWeight
 
std::vector< unsigned int > indexVector
 
double inverseWeight
 

Constructor & Destructor Documentation

◆ BalancedPartitionCandidate()

BOL::BalancedPartitionCandidate::BalancedPartitionCandidate ( )

Definition at line 17 of file BalancedPartitionCandidate.cpp.

17 :
19 candidateWeight( 0.0 ),
21 {
22 // just lets everything initialize in the default way.
23 }
static double const notANumber
Definition: UsefulStuff.hpp:28

◆ ~BalancedPartitionCandidate()

BOL::BalancedPartitionCandidate::~BalancedPartitionCandidate ( )

Definition at line 25 of file BalancedPartitionCandidate.cpp.

26 {
27 // does nothing.
28 }

Member Function Documentation

◆ buildFrom()

void BOL::BalancedPartitionCandidate::buildFrom ( BalancedPartitionCandidate const &  basePartition,
unsigned int const  extraIndex,
double const  candidateWeight,
double const  inverseWeight 
)
inline

Definition at line 63 of file BalancedPartitionCandidate.hpp.

71 {
72 indexVector = basePartition.indexVector;
73 indexVector.push_back( extraIndex );
76 }

◆ getInverseWeight()

double BOL::BalancedPartitionCandidate::getInverseWeight ( ) const
inline

Definition at line 97 of file BalancedPartitionCandidate.hpp.

98 {
99 return inverseWeight;
100 }

◆ getVector()

std::vector< unsigned int > & BOL::BalancedPartitionCandidate::getVector ( )
inline

Definition at line 79 of file BalancedPartitionCandidate.hpp.

80 {
81 return indexVector;
82 }

◆ getWeight()

double BOL::BalancedPartitionCandidate::getWeight ( ) const
inline

Definition at line 85 of file BalancedPartitionCandidate.hpp.

86 {
87 return candidateWeight;
88 }

◆ setInverseWeight()

void BOL::BalancedPartitionCandidate::setInverseWeight ( double const  inverseWeight)
inline

Definition at line 103 of file BalancedPartitionCandidate.hpp.

104 {
106 }

◆ setWeight()

void BOL::BalancedPartitionCandidate::setWeight ( double const  candidateWeight)
inline

Definition at line 91 of file BalancedPartitionCandidate.hpp.

92 {
94 }

Member Data Documentation

◆ candidateWeight

double BOL::BalancedPartitionCandidate::candidateWeight
protected

Definition at line 54 of file BalancedPartitionCandidate.hpp.

◆ indexVector

std::vector< unsigned int > BOL::BalancedPartitionCandidate::indexVector
protected

Definition at line 53 of file BalancedPartitionCandidate.hpp.

◆ inverseWeight

double BOL::BalancedPartitionCandidate::inverseWeight
protected

Definition at line 55 of file BalancedPartitionCandidate.hpp.


The documentation for this class was generated from the following files: