OR-Tools  9.3
IntegerDistribution

Detailed Description

Definition at line 287 of file stats.h.

Public Member Functions

 IntegerDistribution (const std::string &name)
 
 IntegerDistribution ()
 
 IntegerDistribution (const std::string &name, StatsGroup *group)
 
std::string ValueAsString () const override
 
void Add (int64_t value)
 
void Reset () override
 
bool WorthPrinting () const override
 
double Sum () const override
 
double Max () const
 
double Min () const
 
int64_t Num () const
 
double Average () const
 
double StdDeviation () const
 
std::string Name () const
 
std::string StatString () const
 
virtual int Priority () const
 

Protected Member Functions

void AddToDistribution (double value)
 

Protected Attributes

double sum_
 
double average_
 
double sum_squares_from_average_
 
double min_
 
double max_
 
int64_t num_
 

Constructor & Destructor Documentation

◆ IntegerDistribution() [1/3]

IntegerDistribution ( const std::string &  name)
inlineexplicit

Definition at line 289 of file stats.h.

◆ IntegerDistribution() [2/3]

IntegerDistribution ( )
inline

Definition at line 291 of file stats.h.

◆ IntegerDistribution() [3/3]

IntegerDistribution ( const std::string &  name,
StatsGroup group 
)
inline

Definition at line 292 of file stats.h.

Member Function Documentation

◆ Add()

void Add ( int64_t  value)

Definition at line 229 of file stats.cc.

◆ AddToDistribution()

void AddToDistribution ( double  value)
protectedinherited

Definition at line 150 of file stats.cc.

◆ Average()

double Average ( ) const
inherited

Definition at line 168 of file stats.cc.

◆ Max()

double Max ( ) const
inlineinherited

Definition at line 189 of file stats.h.

◆ Min()

double Min ( ) const
inlineinherited

Definition at line 190 of file stats.h.

◆ Name()

std::string Name ( ) const
inlineinherited

Definition at line 102 of file stats.h.

◆ Num()

int64_t Num ( ) const
inlineinherited

Definition at line 191 of file stats.h.

◆ Priority()

virtual int Priority ( ) const
inlinevirtualinherited

Reimplemented in TimeDistribution.

Definition at line 111 of file stats.h.

◆ Reset()

void Reset ( )
overridevirtualinherited

Implements Stat.

Definition at line 141 of file stats.cc.

◆ StatString()

std::string StatString ( ) const
inherited

Definition at line 46 of file stats.cc.

◆ StdDeviation()

double StdDeviation ( ) const
inherited

Definition at line 170 of file stats.cc.

◆ Sum()

double Sum ( ) const
inlineoverridevirtualinherited

Reimplemented from Stat.

Definition at line 188 of file stats.h.

◆ ValueAsString()

std::string ValueAsString ( ) const
overridevirtual

Implements DistributionStat.

Definition at line 233 of file stats.cc.

◆ WorthPrinting()

bool WorthPrinting ( ) const
inlineoverridevirtualinherited

Implements Stat.

Definition at line 182 of file stats.h.

Member Data Documentation

◆ average_

double average_
protectedinherited

Definition at line 207 of file stats.h.

◆ max_

double max_
protectedinherited

Definition at line 210 of file stats.h.

◆ min_

double min_
protectedinherited

Definition at line 209 of file stats.h.

◆ num_

int64_t num_
protectedinherited

Definition at line 211 of file stats.h.

◆ sum_

double sum_
protectedinherited

Definition at line 206 of file stats.h.

◆ sum_squares_from_average_

double sum_squares_from_average_
protectedinherited

Definition at line 208 of file stats.h.


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