Skip to content

Commit c6d2bf8

Browse files
committed
time dependent dist in docs
1 parent 82e9364 commit c6d2bf8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/Features/distributions.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Ciw currently allows the following continuous service and inter-arrival time dis
1515
- :ref:`weibull_dist`
1616
- :ref:`empirical_dist`
1717
- :ref:`own_functions`
18+
- :ref:`time_dependent`
1819
- :ref:`no_arrivals`
1920

2021

@@ -161,6 +162,18 @@ Ciw allows users to input their own function to generate service and inter-arriv
161162

162163

163164

165+
.. _time_dependent:
166+
167+
------------------------
168+
Time Dependent Functions
169+
------------------------
170+
171+
Similar to adding :code:`UserDefined` functions, Ciw allows for time dependent functions. These are lambda functions that take in a time parameter. Ciw uses the simulation's current time to sample a new service or inter-arrival time::
172+
173+
['TimeDependent', lambda t : my_time_dependent_func(t)]
174+
175+
176+
164177
.. _no_arrivals:
165178

166179
-----------

0 commit comments

Comments
 (0)