OR-Tools  8.2
TimeDistribution

Detailed Description

Definition at line 221 of file stats.h.

Public Member Functions

 TimeDistribution (const std::string &name)
 
 TimeDistribution ()
 
 TimeDistribution (const std::string &name, StatsGroup *group)
 
std::string ValueAsString () const override
 
int Priority () const override
 
void AddTimeInSec (double seconds)
 
void AddTimeInCycles (double cycles)
 
void StartTimer ()
 
double StopTimerAndAddElapsedTime ()
 
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
 

Static Public Member Functions

static double CyclesToSeconds (double num_cycles)
 

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

◆ TimeDistribution() [1/3]

TimeDistribution ( const std::string &  name)
inlineexplicit

Definition at line 223 of file stats.h.

◆ TimeDistribution() [2/3]

TimeDistribution ( )
inline

Definition at line 225 of file stats.h.

◆ TimeDistribution() [3/3]

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

Definition at line 226 of file stats.h.

Member Function Documentation

◆ AddTimeInCycles()

void AddTimeInCycles ( double  cycles)

Definition at line 199 of file stats.cc.

◆ AddTimeInSec()

void AddTimeInSec ( double  seconds)

Definition at line 193 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.

◆ CyclesToSeconds()

double CyclesToSeconds ( double  num_cycles)
static

Definition at line 175 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()

int Priority ( ) const
inlineoverridevirtual

Reimplemented from Stat.

Definition at line 231 of file stats.h.

◆ Reset()

void Reset ( )
overridevirtualinherited

Implements Stat.

Definition at line 141 of file stats.cc.

◆ StartTimer()

void StartTimer ( )
inline

Definition at line 245 of file stats.h.

◆ 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.

◆ StopTimerAndAddElapsedTime()

double StopTimerAndAddElapsedTime ( )
inline

Definition at line 249 of file stats.h.

◆ 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 204 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: