OR-Tools  8.2
RatioDistribution

Detailed Description

Definition at line 263 of file stats.h.

Public Member Functions

 RatioDistribution (const std::string &name)
 
 RatioDistribution ()
 
 RatioDistribution (const std::string &name, StatsGroup *group)
 
std::string ValueAsString () const override
 
void Add (double value)
 
void Reset () override
 
bool WorthPrinting () const override
 
double Sum () const override
 
double Max () const
 
double Min () const
 
int64 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 num_
 

Constructor & Destructor Documentation

◆ RatioDistribution() [1/3]

RatioDistribution ( const std::string &  name)
inlineexplicit

Definition at line 265 of file stats.h.

◆ RatioDistribution() [2/3]

RatioDistribution ( )
inline

Definition at line 267 of file stats.h.

◆ RatioDistribution() [3/3]

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

Definition at line 268 of file stats.h.

Member Function Documentation

◆ Add()

void Add ( double  value)

Definition at line 211 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 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 216 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 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: