|
SIMLIB/C++ 3.09
|
time dependent statistic More...
#include <simlib.h>


Public Member Functions | |
| TStat (double initval=0.0) | |
| TStat (const char *name, double initval=0.0) | |
| ~TStat () | |
| virtual void | Clear (double initval=0.0) |
| initialize | |
| virtual void | Output () const override |
| print object to default output | |
| virtual void | operator() (double x) |
| record the value | |
| unsigned long | Number () const |
| double | Min () const |
| double | Max () const |
| double | Sum () const |
| double | SumSquare () const |
| double | StartTime () const |
| double | LastTime () const |
| double | LastValue () const |
| double | MeanValue () const |
Public Member Functions inherited from simlib3::SimObject | |
| bool | TestAndSetFlag (bool new_value, unsigned n) |
| internal method for flag manipulation is used for algebraic loop checking in continuous blocks | |
| SimObject () | |
| constructor | |
| virtual | ~SimObject () |
| virtual destructor | |
| void * | operator new (size_t size) |
| allocate object, set _flags | |
| void | operator delete (void *ptr) |
| deallocate object | |
| void * | operator new[] (size_t size)=delete |
| void | operator delete[] (void *ptr)=delete |
| bool | isAllocated () const |
| virtual std::string | Name () const |
| get object name | |
| bool | HasName () const |
| void | SetName (const std::string &name) |
| assign the name | |
| virtual void | Output () const |
| print object to default output | |
Protected Attributes | |
| double | sxt |
| double | sx2t |
| double | min |
| double | max |
| double | t0 |
| double | tl |
| double | xl |
| unsigned long | n |
Protected Attributes inherited from simlib3::SimObject | |
| unsigned | _flags |
| bool flags for internal use (TODO bitfield?) | |
Friends | |
| class | Facility |
| class | Store |
| class | Queue |
Additional Inherited Members | |
Public Types inherited from simlib3::SimObject | |
| enum | _Flags { _CLEAR_ALL_FLAGS = 0 , _ALLOCATED_FLAG = 1<<0 , _EVAL_FLAG = 1<<1 , _HAS_NAME_FLAG = 1<<2 } |
|
explicit |
|
explicit |
Definition at line 42 of file tstat.cc.
References Dprintf, and simlib3::SimObject::SetName().
| simlib3::TStat::~TStat | ( | ) |
Definition at line 56 of file tstat.cc.
References Dprintf, and simlib3::SimObject::Name().
|
virtual |
initialize
Definition at line 83 of file tstat.cc.
References Dprintf, max, min, n, simlib3::SimObject::Name(), sx2t, sxt, t0, simlib3::Time, tl, and xl.
Referenced by simlib3::Queue::clear(), simlib3::Facility::Clear(), and simlib3::Store::Clear().
|
inline |
|
inline |
|
inline |
Definition at line 614 of file simlib.h.
References max.
Referenced by simlib3::Queue::Output(), and simlib3::Store::Output().
| double simlib3::TStat::MeanValue | ( | ) | const |
Definition at line 96 of file tstat.cc.
References simlib3::SIMLIB_error(), sxt, t0, simlib3::Time, tl, TStatNotInitialized, and xl.
Referenced by Output(), simlib3::Queue::Output(), simlib3::Facility::Output(), and simlib3::Store::Output().
|
inline |
|
inline |
Definition at line 612 of file simlib.h.
References n.
Referenced by simlib3::Queue::Output(), simlib3::Facility::Output(), and simlib3::Store::Output().
|
virtual |
record the value
Definition at line 64 of file tstat.cc.
References max, min, n, simlib3::SIMLIB_warning(), sx2t, sxt, simlib3::Time, tl, TStatNotInitialized, and xl.
|
overridevirtual |
print object to default output
Reimplemented from simlib3::SimObject.
Definition at line 223 of file output2.cc.
References max, MeanValue(), min, n, simlib3::SimObject::Name(), simlib3::Print(), t0, and simlib3::Time.
|
inline |
Definition at line 617 of file simlib.h.
References t0.
Referenced by simlib3::Queue::Output(), simlib3::Facility::Output(), and simlib3::Store::Output().
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
Definition at line 601 of file simlib.h.
Referenced by Clear(), simlib3::Queue::Get(), simlib3::Store::Leave(), Number(), operator()(), Output(), simlib3::Store::Output(), and simlib3::Facility::Release().
|
protected |
Definition at line 595 of file simlib.h.
Referenced by Clear(), operator()(), and SumSquare().
|
protected |
Definition at line 594 of file simlib.h.
Referenced by Clear(), MeanValue(), operator()(), and Sum().
|
protected |
Definition at line 598 of file simlib.h.
Referenced by Clear(), MeanValue(), Output(), and StartTime().
|
protected |
Definition at line 599 of file simlib.h.
Referenced by Clear(), LastTime(), MeanValue(), and operator()().
|
protected |
Definition at line 600 of file simlib.h.
Referenced by Clear(), LastValue(), MeanValue(), and operator()().