Keywords

1 Introduction

Functioning of mobile robots may be considered as sequence of switching from one state of onboard equipment to another under control of commands flow [1, 2]. States of robot may include interpretation of the programs by onboard computer [3, 4], receiving/generating transactions, execution the commands by mechanical or electronic units, service a queue of command [5, 6], support the dialogue with remote operator [7] etc. Below, all switches and interconnections will be called transactions. Transactions occur in the physical time. Time intervals between transactions for the external observer are random values [8]. So transactions form a flow. One of variety of flows is the stationary Poisson flow, which possesses an important property – absence of aftereffect [9, 10]. Use such a property permits substantially to simplify the modeling behavior of robots. So when working out robot’s digital control systems there is always emerges a question about a degree of approximation the real flow to Poisson flow. Methods of estimation of properties the flows of transactions are developed insufficiently, that explains the necessity and relevance of the work.

2 Quantitative Estimations of Approximation Degree of Transaction Flows to Poisson One

It is well known, that time intervals between transactions in Poisson flow are characterized with exponential distribution law [9,10,11]:

$$ f\left( t \right) = \frac{1}{T}\exp \left( { - \frac{t}{T}} \right), $$
(1)

where T – is the expectation of time interval; t – is the time.

Regression criterion is based on estimation of standard-mean-square error as follows [12, 13]:

$$ \varepsilon_{r} = \int\limits_{0}^{{\infty }} {\left[ {g\left( t \right) - f\left( t \right)} \right]^{2} dt} , $$
(2)

where \( g\left( t \right) \) – is the distribution under estimation.

Let \( g\left( t \right) = \delta \left( {t - T} \right) \), where \( \delta \left( {t - T} \right) \) – is Dirac δ-function. Then:

$$ \varepsilon_{r} = \int\limits_{0}^{{\infty }} {\left[ {\delta \left( {t - T} \right) - f\left( t \right)} \right]^{2} dt} = \varepsilon_{r1} + \varepsilon_{r2} + \varepsilon_{r3} , $$
(3)

where

$$ \begin{array}{*{20}c} {\varepsilon_{r1} = \int\limits_{0}^{{\infty }} {\delta^{2} \left( {t - T} \right)dt} = \mathop {\lim }\limits_{a \to 0} {\kern 1pt} \;\int\limits_{T - a}^{T + a} {\left( {\frac{1}{2a}} \right)^{2} dt} = {\infty };} \\ {\varepsilon_{r2} = - 2\int\limits_{0}^{{\infty }} {\delta \left( {t - T_{g} } \right) \cdot \frac{1}{{T_{f} }}\exp \left( { - \frac{t}{T}} \right)dt} = - \frac{2}{eT};} \\ {\varepsilon_{r3} = \int\limits_{0}^{{\infty }} {\frac{1}{{T^{2} }}\exp \left( { - \frac{2t}{T}} \right)dt} = \frac{1}{2T}.} \\ \end{array} $$

Thus criterion \( \varepsilon_{r} \) changes from 0 (flow without aftereffect) till ∞ (flow with deterministic link between transactions), and it has the dimension as [time−1].

Correlation criterion is as follows [14]:

$$ \varepsilon_{c} = \int\limits_{0}^{{\infty }} {g\left( t \right) \cdot \frac{1}{T}\exp \left( { - \frac{t}{T}} \right)dt} . $$
(4)

This criterion changes from \( \frac{1}{2T} \) (flow without aftereffect) till \( \frac{1}{eT} \), where \( e = 2,718 \) (deterministic flow). With use the function:

$$ \tilde{\varepsilon }_{c} = \frac{{e(1 - 2\,T\varepsilon_{c} )}}{e - 2}. $$
(5)

Criterion may be done the non-dimensional one, and it fits the interval \( 0 \le \tilde{\varepsilon }_{c} \le 1 \).

Parametrical criterion is based on the next property of exponential low (1) [9,10,11]:

$$ T = \sqrt D , $$
(6)

where \( D = \int\limits_{0}^{{\infty }} {\frac{{\left( {t - T} \right)^{2} }}{T}\exp \left( { - \frac{t}{T}} \right)} dt \) – is the dispersion of the law (1).

To obtain from the property (6) non-dimensional criterion, fitting the interval \( 0 \le \tilde{\varepsilon }_{c} \le 1 \), one should calculate the next function:

$$ \varepsilon_{p} = \frac{{\left( {T_{g} - \sqrt {D_{g} } } \right){}^{2}}}{{T_{g}^{2} }}, $$
(7)

where \( T_{g} = \int\limits_{0}^{{\infty }} {tg\left( t \right)dt} \) and \( D_{g} = \int\limits_{0}^{{\infty }} {\left( {t - T_{g} } \right)g\left( t \right)dt} \) – are expectation and dispersion of density \( g\left( t \right). \)

In the case of experimental determining \( g\left( t \right) \) as a histogram:

$$ g\left( t \right) = \left( {\begin{array}{*{20}c} {\begin{array}{*{20}c} {\begin{array}{*{20}c} {t_{0} \le t < t_{1} } \\ {n_{1} } \\ \end{array} } & \ldots \\ \end{array} } & {\begin{array}{*{20}c} {t_{i - 1} \le t < t_{k} } \\ {n_{i} } \\ \end{array} } & {\begin{array}{*{20}c} \ldots & {\begin{array}{*{20}c} {t_{J - 1} \le t < t_{J} } \\ {n_{J} } \\ \end{array} } \\ \end{array} } \\ \end{array} } \right), $$
(8)

where \( n_{i} \) – is quantity of results fitting the interval \( t_{i - 1} \le t < t_{i} , \) then estimation of proximity of \( f\left( t \right) \) and \( g\left( t \right) \) one should use Pearson’s criterion [15,16,17].

3 Criterion, Based on “Competition” Analysis

Let us consider transactions generation process as the “competition” of two subjects: external observer and transaction generator. Model of “competition” is the 2-parallel semi-Markov process, shown on the Fig. 1a.:

$$ {\mathbf{M}} = \left[ {A,\;{\mathbf{h}}\left( t \right)} \right], $$
(9)

where \( A = \left\{ {a_{w1} ,\;a_{w2} ,\;a_{g1} ,\;a_{g2} ,\;} \right\} \) – is the set of states; \( a_{w1} ,a_{g1} \) – are the starting states; \( a_{w2} ,a_{g2} \) – are the absorbing states; \( {\mathbf{h}}\left( t \right) \) – is the semi-Markov matrix:

Fig. 1.
figure 1

To waiting time calculation

$$ {\mathbf{h}}\left( t \right) = \left[ {\begin{array}{*{20}c} {\left[ {\begin{array}{*{20}c} 0 & {w\left( t \right)} \\ 0 & 0 \\ \end{array} } \right]} & {\mathbf{0}} \\ {\mathbf{0}} & {\left[ {\begin{array}{*{20}c} 0 & {g\left( t \right)} \\ 0 & 0 \\ \end{array} } \right]} \\ \end{array} } \right];\quad {\mathbf{0}} = \left[ {\begin{array}{*{20}c} 0 & 0 \\ 0 & 0 \\ \end{array} } \right]. $$
(10)

Let us consider the situation, when observer “wins” and at from the moment τ waits the event, when occurs the next transaction. For determine the waiting time let us construct on 2-parallel process M the ordinary semi-Markov process M′ (Fig. 1b):

$$ {\mathbf{M^{\prime}}} = \left[ {{{\rm A}^{\prime}},\;{\mathbf{h^{\prime}}}\left( t \right)} \right], $$
(11)

where \( {{\rm A}^{\prime}} = {\rm A}\,{ \cup }\,{\rm B} \) – is the set of states; \( {\rm A} = \left\{ {\alpha_{1} ,\;\alpha_{2} ,\;\alpha_{3} } \right\} \) – is the subset of states, which simulate beginning and ending of wandering through semi-Markov process; \( \alpha_{1} \) – is the starting state; \( \alpha_{2} \) – is the absorbing state, which simulate “winning” of transaction generator; \( \alpha_{3} \) – is the absorbing state, which simulates end of waiting by the observer the event of generation transaction; \( {\rm B} = \left\{ {\beta_{1} ,\; \ldots ,\;\beta_{i} ,\; \ldots } \right\} \) – is the infinite set of states, which define time intervals for various situation of finishing of transaction generator; \( {\mathbf{h^{\prime}}}\left( t \right) = \left\{ {h^{\prime}_{m,n} \left( t \right)} \right\} \) – semi-Markov matrix, which define time intervals.

Elements \( h^{\prime}_{m,n} (t) \) are as follows: \( h^{\prime}_{m,n} (t) \) is the weighted density of time of finishing transaction generator if it “wins” the “competition”:

$$ h^{\prime}_{12} (t) = g(t)\left[ {1 - W(t)} \right], $$
(12)

where \( {\text{W}}\left( {\text{t}} \right) = \int\limits_{0}^{\text{t}} {{\text{w}}\left( \theta \right){\text{d}}\theta } \) – is the distribution function; \( \theta \) – is an auxiliary variable;

\( h^{\prime}_{1,2 + i} (t),\;i = 1,2, \ldots \), are defined as weighted densities of time of finishing of observer exactly at the time τ, if he “wins” the “competition” and waits the transaction:

$$ h^{\prime}_{1,2 + i} (t) = \delta \left( {t - \tau } \right) \cdot w(\tau )\left[ {1 - G(\tau )} \right]d\tau , $$
(13)

where \( \delta \left( {t - \tau } \right) \) – Dirac function; \( G(t) = \int\limits_{0}^{t} {g\left( \theta \right)d\theta } ;\;w\left( \tau \right)\left[ {1 - G\left( \tau \right)} \right]d\tau \) – probability of finishing the observer exactly at the time τ, if he “wins” the “competition”;

\( \frac{{\eta (t) \cdot g\left( {t + \tau } \right)}}{1 - G\left( \tau \right)} \) – is the density of time of residence semi-Markov process \( {\mathbf{h^{\prime}}}(t) \) in state Β, where η(t) – is the Heaviside function.

Thus, probability of hitting the process \( {\mathbf{h^{\prime}}}(t) \) to the state Β is as follows \( p_{{\alpha_{0} \beta }} = \int\limits_{0}^{\infty } {\left[ {1 - G\left( \tau \right)} \right]w\left( \tau \right)d\tau } = \int\limits_{0}^{\infty } {W(t)g(t)dt} \). Weighted density of time of waiting by observer the next transaction is equal to \( h_{w \to g} (t) = \eta (t)\int\limits_{0}^{\infty } {w\left( \tau \right)g\left( {t + \tau } \right)d\tau } \). Pure density is as follows:

$$ f_{w \to g} (t) = \frac{{\eta \left( t \right)\int\limits_{0}^{{\infty }} {w\left( \tau \right)g\left( {t + \tau } \right)d\tau } }}{{\int\limits_{0}^{{\infty }} {W(t)dG(t)} }}. $$
(14)

Let us consider function \( f_{w \to g} \left( t \right) \) behavior when \( g(t) = \frac{1}{{T_{g} }}\exp \left( { - \frac{t}{{T_{g} }}} \right) \) (flow of transactions without aftereffect) and when \( g\left( t \right) = \delta \left( {t - T_{g} } \right) \) (flow with deterministic link between transactions).

Formula (14) for the first case is as follows:

$$ f_{w \to g} \left( t \right) = \frac{{\eta \left( t \right)\int\limits_{0}^{{\infty }} {w\left( \tau \right)\frac{1}{{T_{g} }}\exp \left[ { - \frac{t + \tau }{{T_{g} }}} \right]d\tau } }}{{1 - \int\limits_{t = 0}^{{\infty }} {\left[ {1 - \exp \left( { - \frac{t}{{T_{g} }}} \right)} \right]dW\left( t \right)} }} = \frac{1}{{T_{g} }}\exp \left( { - \frac{t}{{T_{g} }}} \right). $$
(15)

Formula (14) for the second case is as follows:

$$ f_{w \to g} (t) = \frac{{\eta (t)w\left( {T_{g} - t} \right)}}{{W\left( {T_{g} } \right)}}. $$
(16)

Suppose that \( w\left( t \right) \) have range of definition \( T_{w\,\hbox{min} } { \le arg}\,w\left( t \right) \le T_{w\,\hbox{max} } \) and expectation \( T_{w\,\hbox{min} } \le T_{w} \le T_{w\,\hbox{max} } . \) In dependence of location \( w(t) \) and \( g(t) \) onto time axis, it is possible next cases:

  1. (a)

    \( T_{g} < T_{w\hbox{min} } \). In this case (14) is senseless.

  2. (b)

    \( T_{w\hbox{min} } \le T_{g} \le T_{w\hbox{max} } \). In this case \( f_{w \to g} (t) \) is defined as (16), range of definition is \( 0 \le \,\arg \left[ {f_{w \to g} \left( t \right)} \right] \le T_{g} - T_{w\hbox{min} } , \) and \( \int\limits_{0}^{{\infty }} {tf_{w \to g} \left( t \right)dt} \le T_{g} \).

  3. (c)

    \( T_{g} > T_{w\hbox{max} } \). In this case \( f_{w \to g} (t) = w(T_{g} - t) \), \( T_{g} - T_{w\hbox{max} } \le \,\arg \left[ {f_{w \to g} \left( t \right)} \right] \le T_{g} - T_{w\hbox{min} } \), and \( \int\limits_{0}^{{\infty }} {tf_{w \to g} \left( t \right)dt} \le T_{g} \).

For this case density of waiting time by Dirac function when transaction occurs is as follows:

$$ f_{\delta \to g} \left( t \right) = \frac{{\eta \left( t \right) \cdot g\left( {t + T_{g} } \right)}}{{\int\limits_{T}^{{\infty }} {g\left( t \right)dt} }}. $$
(17)

Expectation of \( f_{\delta \to g} \left( t \right) \) is as follows:

$$ T_{\delta \to g} = \int\limits_{0}^{{\infty }} {t\frac{{g\left( {t + T_{g} } \right)}}{{\int\limits_{T}^{{\infty }} {g\left( t \right)dt} }}dt} . $$
(18)

So, the criterion, based on “competition” analysis, is as follows:

$$ \varepsilon_{w} = \left( {\frac{{T_{g} - T_{\delta \to g} }}{{T_{g} }}} \right)^{2} , $$
(19)

where \( T_{g} \) – is the expectation of density \( g\left( t \right) = \delta \left( {t - T_{g} } \right) \); \( T_{\delta \to g} \) – is the expectation of density \( f_{\delta \to g} \left( t \right) \). For the exponential law:

$$ \varepsilon_{w} = \left( {\frac{{T - T_{\delta \to g} }}{T}} \right)^{2} = \left( {\frac{T - T}{T}} \right)^{2} = 0. $$
(20)

Let us investigate behavior of \( T_{\delta \to g} \). For that let us expectation of \( g\left( t \right) \) as (Fig. 2):

$$ \begin{aligned} \int\limits_{0}^{{\infty }} {tg\left( t \right)dt} & = \int\limits_{0}^{T} {tg\left( t \right)dt} + \int\limits_{0}^{{\infty }} {tg\left( {t + T_{g} } \right)dt} + T_{g} \int\limits_{0}^{{\infty }} {g\left( {t + T_{g} } \right)dt} \\ & = p_{1g} T_{1g} + p_{2g} T_{\delta \to g} + p_{2g} T_{g} = T_{g} , \\ \end{aligned} $$
(21)

where \( p_{1g} = \int\limits_{0}^{T} {g\left( t \right)dt} ;\quad p_{2g} = \int\limits_{T}^{{\infty }} {g\left( t \right)dt} \).

Fig. 2.
figure 2

To calculate of expectation

If \( g\left( t \right) = f\left( t \right) \), then \( p_{1f} = \frac{e - 1}{e};\;p_{2f} = \frac{1}{e};\;T_{1f} = T\frac{e - 2}{e - 1} \) and from equation:

$$ p_{1f} T_{1f} + p_{2f} T_{\delta \to f} + p_{2f} T = T, $$
(22)

follows that:

$$ T_{\delta \to f} = T. $$
(23)

If \( g\left( t \right) \ne f\left( t \right) \) then from (21) follows that:

$$ T_{\delta \to g} = \frac{{p_{1g} \left( {T - T_{1g} } \right)}}{{1 - p_{1g} }}. $$
(24)

4 Example

As an example let us consider the case, when transaction flow is formed as a result of competition inside the swarm of robots, when common quantity of robots is equal to K. Time from the start of observation and transaction, formed by k-th robot, \( 1 \le k \le K \), is defined with identical uniform lows. Forming the flow of transactions may be simulate with K-parallel semi-Markov process:

$$ {\mathbf{M}}^{K} = \left[ {{\rm A}^{K} ,\;{\mathbf{h}}^{K} \left( t \right)} \right], $$
(25)

where \( A^{K} = \left\{ {a_{ 1 1} ,\; \ldots ,\;a_{k 1} ,\; \ldots ,\;a_{K 1} ,\;a_{ 1 2} ,\; \ldots ,\;a_{k 2} ,\; \ldots ,\;a_{K 2} } \right\} \) – is the set of states; \( a_{ 1 1} ,\; \ldots ,\;a_{k 1} ,\; \ldots ,\;a_{K 1} \) – is the subset of starting states; \( a_{ 1 2} ,\; \ldots ,\;a_{k 2} ,\; \ldots ,\;a_{K 2} \) – is the subset of absorbing states; \( {\mathbf{h}}^{K} \left( t \right) \) – semi-Markov matrix, kk-th elements of the main diagonal of which is equal to \( \left[ {\begin{array}{*{20}c} 0 & {v_{k} \left( t \right)} \\ 0 & 0 \\ \end{array} } \right] \), and other elements are equal to zeros (Fig. 3):

Fig. 3.
figure 3

Forming a flow of transactions in swarm of K robots

$$ v_{1} \left( t \right) = \ldots = v_{k} \left( t \right) = \ldots v_{K} \left( t \right) = v\left( t \right) = \left\{ {\begin{array}{*{20}l} {1,\;when\;0 \le t \le 1;} \hfill \\ {0\;in\,all\,other\,cases .} \hfill \\ \end{array} } \right. $$
(26)

K-parallel process starts from all states of subset \( a_{ 1 1} ,\; \ldots ,\;a_{k 1} ,\; \ldots ,\;a_{K 1} \) contemporaneously. Transaction is generated when one of ordinary semi-Markov processes gets the state from the subset \( a_{ 1 2} ,\; \ldots ,\;a_{k 2} ,\; \ldots ,\;a_{K 2} . \) In accordance with theorem by Grigelionis [18] when \( K \to \infty \) flow of transactions approaches to Poisson one.

Density of time when at least one of robot of swarm generates transaction is as follows:

$$ g_{K} \left( t \right) = \frac{{d\left\{ {1 - \left[ {1 - V\left( t \right)} \right]^{K} } \right\}}}{dt}, $$
(27)

where:

$$ V\left( t \right) = \int\limits_{0}^{t} {v\left( \tau \right)d\tau = } \left\{ {\begin{array}{*{20}l} {2t,\;when\;0 \le t \le 1;} \hfill \\ {0\;in\,all\,other\,cases .} \hfill \\ \end{array} } \right. $$

For this case:

$$ g_{K} = \left\{ {\begin{array}{*{20}l} {K\left( {1 - t} \right)^{K - 1} ,\;when\;0 \le t \le 1;} \hfill \\ {0\;in\,all\,other\,cases .} \hfill \\ \end{array} } \right. $$
(28)

Expectation of (27) is as follows:

$$ T_{K} = \int\limits_{0}^{1} {tK\left( {1 - t} \right)^{K - 1} dt} = \frac{1}{K + 1}[time]. $$
(29)

Exponential law, which define Poisson flow of transactions is as follows:

$$ f_{K} \left( t \right) = \left( {K + 1} \right)\exp \left[ { - \left( {K + 1} \right)t} \right]\;\left[ {\frac{prob}{time}} \right]. $$
(30)

For waiting function:

$$ \tilde{T}_{K} = \frac{K}{{\left( {K + 1} \right)^{2} }}\;[time], $$
(31)
$$ \mathop {\lim }\limits_{{K{ \to \infty }}} \varepsilon_{lg}^{K} = \mathop {\lim }\limits_{{K{ \to \infty }}} \left( {\frac{{T_{K} - \tilde{T}_{K} }}{{T_{K} }}} \right)^{2} = \mathop {\lim }\limits_{{K{ \to \infty }}} \frac{1}{{\left( {K + 1} \right)^{2} }} = 0. $$
(32)

I.e. with increasing K law approaches to exponential, in accordance with B. Grigelionis theorem. Densities are shown on the Fig. 4. Already at K = 0,012 what can be considered as a good approximation.

Fig. 4.
figure 4

Densities of time between transactions from swarm of robots

5 Conclusion

In such a way criteria with which may be estimated degree of approach of transaction flow in robotic system to Poisson flow were investigated. Criterion, based on calculation of the waiting time, is proposed, as one, which gives good representation about properties of flow of transactions, and have respectively low runtime when estimation.

Further investigation in the domain may be directed to description of method of calculations when processing statistics of time interval in a flow. Other research may concern the errors, to which leads the modeling of robot with non-Poisson character of transactions flows, when Poisson flows conception was laid into the base of simulation.