|
SIMLIB/C++
3.07
|
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 More... | |
| virtual void | Output () const override |
| print object to default output More... | |
| virtual void | operator() (double x) |
| record the value More... | |
| 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 More... | |
| SimObject () | |
| constructor More... | |
| virtual | ~SimObject () |
| virtual destructor More... | |
| void * | operator new (size_t size) |
| allocate object, set _flags More... | |
| void | operator delete (void *ptr) |
| deallocate object More... | |
| void * | operator new[] (size_t size)=delete |
| void | operator delete[] (void *ptr)=delete |
| bool | isAllocated () const |
| virtual std::string | Name () const |
| get object name More... | |
| bool | HasName () const |
| void | SetName (const std::string &name) |
| assign the name More... | |
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?) More... | |
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 |
Definition at line 614 of file simlib.h.
References simlib3::max().
Referenced by 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, simlib3::TStatNotInitialized, and xl.
Referenced by simlib3::Facility::Output(), and simlib3::Store::Output().
|
inline |
Definition at line 613 of file simlib.h.
References simlib3::min().
Referenced by simlib3::Store::Output().
|
inline |
Definition at line 612 of file simlib.h.
Referenced by 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, simlib3::TStatNotInitialized, and xl.
|
overridevirtual |
print object to default output
Reimplemented from simlib3::SimObject.
Definition at line 223 of file output2.cc.
References simlib3::max(), simlib3::min(), simlib3::SimObject::Name(), simlib3::Print(), and simlib3::Time.
|
inline |
Definition at line 617 of file simlib.h.
Referenced by simlib3::Facility::Output(), and simlib3::Store::Output().
|
protected |
Definition at line 597 of file simlib.h.
Referenced by Clear(), and operator()().
|
protected |
Definition at line 596 of file simlib.h.
Referenced by Clear(), and operator()().
|
protected |
Definition at line 601 of file simlib.h.
Referenced by Clear(), simlib3::Queue::Get(), simlib3::Store::Leave(), operator()(), simlib3::Store::Output(), and simlib3::Facility::Release().
|
protected |
Definition at line 595 of file simlib.h.
Referenced by Clear(), and operator()().
|
protected |
Definition at line 594 of file simlib.h.
Referenced by Clear(), MeanValue(), and operator()().
|
protected |
Definition at line 598 of file simlib.h.
Referenced by Clear(), and MeanValue().
|
protected |
Definition at line 599 of file simlib.h.
Referenced by Clear(), MeanValue(), and operator()().
|
protected |
Definition at line 600 of file simlib.h.
Referenced by Clear(), MeanValue(), and operator()().
1.8.13