OR-Tools  9.6
IntegerDistribution

Detailed Description

Definition at line 288 of file stats.h.

Public Member Functions

 IntegerDistribution (absl::string_view name)
 
 IntegerDistribution ()
 
 IntegerDistribution (absl::string_view 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 ( absl::string_view  name)
inlineexplicit

Definition at line 290 of file stats.h.

◆ IntegerDistribution() [2/3]

IntegerDistribution ( )
inline

Definition at line 292 of file stats.h.

◆ IntegerDistribution() [3/3]

IntegerDistribution ( absl::string_view  name,
StatsGroup group 
)
inline

Definition at line 293 of file stats.h.

Member Function Documentation

◆ Add()

void Add ( int64_t  value)

Definition at line 235 of file stats.cc.

◆ AddToDistribution()

void AddToDistribution ( double  value)
protectedinherited

Definition at line 156 of file stats.cc.

◆ Average()

double Average ( ) const
inherited

Definition at line 174 of file stats.cc.

◆ Max()

double Max ( ) const
inlineinherited

Definition at line 191 of file stats.h.

◆ Min()

double Min ( ) const
inlineinherited

Definition at line 192 of file stats.h.

◆ Name()

std::string Name ( ) const
inlineinherited

Definition at line 104 of file stats.h.

◆ Num()

int64_t Num ( ) const
inlineinherited

Definition at line 193 of file stats.h.

◆ Priority()

virtual int Priority ( ) const
inlinevirtualinherited

Reimplemented in TimeDistribution.

Definition at line 113 of file stats.h.

◆ Reset()

void Reset ( )
overridevirtualinherited

Implements Stat.

Definition at line 147 of file stats.cc.

◆ StatString()

std::string StatString ( ) const
inherited

Definition at line 52 of file stats.cc.

◆ StdDeviation()

double StdDeviation ( ) const
inherited

Definition at line 176 of file stats.cc.

◆ Sum()

double Sum ( ) const
inlineoverridevirtualinherited

Reimplemented from Stat.

Definition at line 190 of file stats.h.

◆ ValueAsString()

std::string ValueAsString ( ) const
overridevirtual

Implements DistributionStat.

Definition at line 239 of file stats.cc.

◆ WorthPrinting()

bool WorthPrinting ( ) const
inlineoverridevirtualinherited

Implements Stat.

Definition at line 184 of file stats.h.

Member Data Documentation

◆ average_

double average_
protectedinherited

Definition at line 209 of file stats.h.

◆ max_

double max_
protectedinherited

Definition at line 212 of file stats.h.

◆ min_

double min_
protectedinherited

Definition at line 211 of file stats.h.

◆ num_

int64_t num_
protectedinherited

Definition at line 213 of file stats.h.

◆ sum_

double sum_
protectedinherited

Definition at line 208 of file stats.h.

◆ sum_squares_from_average_

double sum_squares_from_average_
protectedinherited

Definition at line 210 of file stats.h.


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