Skip to main content

Contains various useful tools in simulating discrete system events based on outcome and probabilities

Project description

What’s new

in Eventsim 0.6

  • Fixed tkinter issue between python 2 and 3 (importing tk not needed when using the import all syntax on eventsim.simevent)

  • improvements and removed unnecessary codes.

in Eventsim 0.5.9

  • Made improvements to trimlist to accept, display and trim more than one argument

in Eventsim 0.5.8

  • Made improvements to trimlist

in Eventsim 0.5.7

  • fixed double outcome list generation in the randgen module

  • fixed errors shown when “r” or “s” is the only argument given

  • Changed trimlist in the discrete module to approximate to 4 decimal places. (Formerly 3 decimal places)

in Eventsim 0.5.6

  • Fixed some bugs, optimised program

  • Renamed models to discrete

  • Now all classes begin with an uppercase

  • discrete(formerly models) now has its own class for easy manipulation

  • Two more methods added to discrete (trimval and trimlist) to display number output in a clean way and approximate to 4d.p)

Description

eventsim makes discrete event easy to simulate

Currently, it consists of three modules: discrete, randgen and simevent

MODULES

Discrete

Contains a class Calculate that takes two lists as arguments and an optional integer value (steps) for simplifying and calculating:

  • probability,

  • estimated variance,

  • estimated mean,

  • estimated standard deviation,

  • expectation value,

  • discreteEmp

as well as two other methods trimval that takes in one argument, (numbers or lists and strips it of leading zeros and round up to 4 decimal places

and trimlist that takes in as many arguments as possibe and does the same thing trimval does but very useful if there is a nested list in the list of arguments.

They both help to display lists and numbers in a better and easier way to read rather than have values with many leading decimal numbers in a list keeping it concise.

Randgen

contains a class Generate that takes integer numbers as arguments (from no argument to 5 arguments) with optional arguments being “r” or “s”. r for reverse sorted and s for ascending order sort. It is used to generate:

  • random outcome,

  • a unique outcome

  • times of occurrence of outcome

  • probability of occurrence

  • cummulative probability of occurrence

Simevent

contains classes for generating and estimating events that happens in a workplace scenario. Simulating events like:

  • Interarrival time

  • Service time

  • Arrival time

  • Time when service begins

  • Time when service ends

  • Wait time in queue

  • Time customer spends in system

  • Idle time of server

  • table display format you you want a more structured approach

This module currently contains three classes, Randomsim, Simulate, Simtable

  • Randomsim which generates random values to populate the inter-arrival and service time ad then calculates the rest of the values (accepts 0 - 3 arguments)

  • Simulate, a more flexible class that allows you to input your own inter-arrival time and service time as a list (takes 1-2 arguments [inter-arrival, service] time)

  • Simtable contains one method, drawtable() for generating a tabled format of all the data using tkinter frames.make life easier by importing all classes from simevent

e.g. from eventsim.simevent import *

or risk having to import at least three different modules by youself.Using drawtable is really simple, you only need to pass in the instance of your simulation class as first argument and Tk() as second argument and your table will be generated for you

e.g. a = Randomsim(4,6,9)
Simtable(a, Tk()).drawtable()

help on using this package is included in the examples. If you have an old version of eventsim, you are adviced to delete/uninstall the old one if the update isn’t working well

For more help information please see examples in the package or checkout its documentation at http://www.pythonhosted.org/eventsim/

Requirements

  • Any version of python

  • One of tkinter ot Tkinter is needed to display generated simulation in a tabular format

Download

Download and install using:

pip install eventsim

Acknowledgements

I was inspired to write this package after my university coursework demanded using python to simulate events. I hope Modelling and Simulation students find it useful

All glory belongs to God for helping me in completing my first module.

Contact

If further information or help is needed, feel free to contact me on my email at taiwo.kareem36@gmail.com This is still in a test mode please if any errror or bugs is found, feel free to contact the developer and give details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

eventsim-0.6.zip (13.1 kB view details)

Uploaded Source

eventsim-0.6.tar.gz (9.3 kB view details)

Uploaded Source

Built Distributions

eventsim-0.6.win32.exe (206.7 kB view details)

Uploaded Source

eventsim-0.6.linux-x86_64.tar.gz (15.7 kB view details)

Uploaded Source

eventsim-0.6-1.src.rpm (19.2 kB view details)

Uploaded Source

eventsim-0.6-1.noarch.rpm (24.3 kB view details)

Uploaded Source

File details

Details for the file eventsim-0.6.zip.

File metadata

  • Download URL: eventsim-0.6.zip
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for eventsim-0.6.zip
Algorithm Hash digest
SHA256 e74a83261dd3169d858821510a07cc564f0951d217afe67050ed8be9c61568f5
MD5 62ad5be0479ee77c600e5975ee79882d
BLAKE2b-256 bba08fcd3bd9ebbd32d853c54bfb136f94940e14894fc76df6a2c7433586c47b

See more details on using hashes here.

File details

Details for the file eventsim-0.6.tar.gz.

File metadata

  • Download URL: eventsim-0.6.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for eventsim-0.6.tar.gz
Algorithm Hash digest
SHA256 7cb6a975bab54093330915b0237b0007bb471ec7deac2454626c3facf0d34895
MD5 d4ce67a5eebdcbe29aaa5bde8420f413
BLAKE2b-256 bbc27d1ddf0bdb74b03450d0bd302ef78bd5ff51701f100d9963adb74aae3ad4

See more details on using hashes here.

File details

Details for the file eventsim-0.6.win32.exe.

File metadata

  • Download URL: eventsim-0.6.win32.exe
  • Upload date:
  • Size: 206.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for eventsim-0.6.win32.exe
Algorithm Hash digest
SHA256 3f8e691cfb23d0dd5115f9cd25b6ebecb3bbb5dfe198571af6d0d6ddf27a8215
MD5 70000ced98e92e8d7018996e29624ec7
BLAKE2b-256 0ad841faa74368fe4beb7fca346756553ef4967ae742700093b453be2fff67c0

See more details on using hashes here.

File details

Details for the file eventsim-0.6.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for eventsim-0.6.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 21eb46612d3b5801610e3b01d01c3912e40c38a3b797a0ed676a5aebebba39ff
MD5 040142093530b7b0c29cd481a8ef8224
BLAKE2b-256 d0e24c9021c86c6f3b72c75f7cdde4c21af09e36e77cc43c2cc9860625557cba

See more details on using hashes here.

File details

Details for the file eventsim-0.6-1.src.rpm.

File metadata

  • Download URL: eventsim-0.6-1.src.rpm
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for eventsim-0.6-1.src.rpm
Algorithm Hash digest
SHA256 9ae124fe7fc0025a204ce6d8baec3162731f4f5787bdb6cc69dc21035701b945
MD5 cbd309e78dc50e605fab107f19934684
BLAKE2b-256 6da3ce6a7ac668f622b4a251e5d327089bc057f735eb3be4cf2ce7b7f3157ddf

See more details on using hashes here.

File details

Details for the file eventsim-0.6-1.noarch.rpm.

File metadata

File hashes

Hashes for eventsim-0.6-1.noarch.rpm
Algorithm Hash digest
SHA256 b815d59ba894faf8e0135f8f2c1473c023f70e9e3d0e88861f7248af55f3afa3
MD5 fd7a389f3fba997ba4db5de26af528d6
BLAKE2b-256 ddfd822e15cb6d2bdbb4a484f7cbc086e4449ed0d7718a909bb31bf7a0dc4f0e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page