@@ -23,7 +23,8 @@ namespace blocks {
23
23
typedef enum {
24
24
STROBE_POISSON = 1 ,
25
25
STROBE_GAUSSIAN = 2 ,
26
- STROBE_UNIFORM = 3
26
+ STROBE_UNIFORM = 3 ,
27
+ STROBE_EXPONENTIAL = 4
27
28
} message_strobe_random_distribution_t ;
28
29
29
30
/* !
@@ -32,8 +33,8 @@ typedef enum {
32
33
*
33
34
* \details
34
35
35
- * Takes a PMT message and sends it out every at random
36
- * intervals. The interval is basedon a random distribution, \p
36
+ * Takes a PMT message and sends it out at random
37
+ * intervals. The interval is based on a random distribution, \p
37
38
* dist, with specified mean (\p mean_ms) and variance (\p
38
39
* std_ms). Useful for testing/debugging the message system.
39
40
*/
@@ -49,9 +50,13 @@ class BLOCKS_API message_strobe_random : virtual public block
49
50
* mean_ms and standard deviation \p std_ms.
50
51
*
51
52
* \param msg The message to send as a PMT.
52
- * \param dist The random distribution from which to draw events.
53
- * \param mean_ms The mean of the distribution.
54
- * \param std_ms The standard deviation of the distribution.
53
+ * \param dist The random distribution from which to draw the time between
54
+ * events.
55
+ * \param mean_ms The mean of the distribution, in milliseconds.
56
+ * \param std_ms The standard deviation of the Gaussian distribution,
57
+ * or the maximum absolute deviation of the Uniform
58
+ * distribution, in milliseconds. This argument is ignored
59
+ * for other distributions.
55
60
*/
56
61
static sptr make (pmt::pmt_t msg,
57
62
message_strobe_random_distribution_t dist,
0 commit comments