1 package org.djutils.stats.summarizers.event;
2
3 import java.io.Serializable;
4
5 import org.djutils.event.EventType;
6 import org.djutils.metadata.MetaData;
7 import org.djutils.metadata.ObjectDescriptor;
8
9
10
11
12
13
14
15
16
17
18
19 public final class StatisticsEvents
20 {
21
22
23 private StatisticsEvents()
24 {
25
26 }
27
28
29
30
31
32 public static final EventType INITIALIZED_EVENT =
33 new EventType("INITIALIZED_EVENT", new MetaData("No arguments", "null", new ObjectDescriptor[0]));
34
35
36
37
38
39 public static final EventType OBSERVATION_ADDED_EVENT =
40 new EventType("OBSERVATION_ADDED_EVENT", new MetaData("Ingested value", "Ingested Number value",
41 new ObjectDescriptor("Ingested value", "Ingested Number value", Number.class)));
42
43
44
45
46
47 public static final EventType WEIGHTED_OBSERVATION_ADDED_EVENT = new EventType("WEIGHTED_OBSERVATION_ADDED_EVENT",
48 new MetaData("Weight and value", "Double Weight and Double value",
49 new ObjectDescriptor[] {new ObjectDescriptor("Weight", "Double weight", Double.class),
50 new ObjectDescriptor("Value", "Double value", Double.class)}));
51
52
53
54
55
56
57 public static final EventType TIMESTAMPED_OBSERVATION_ADDED_EVENT = new EventType("TIMESTAMPED_OBSERVATION_ADDED_EVENT",
58 new MetaData("Time stamp and value", "Time stamp and Double value",
59 new ObjectDescriptor[] {new ObjectDescriptor("TimeStamp", "Time stamp", Serializable.class),
60 new ObjectDescriptor("Value", "Double value", Double.class)}));
61
62
63
64
65
66
67
68 public static final EventType N_EVENT = new EventType("N_EVENT", new MetaData("count", "Number of registered events",
69 new ObjectDescriptor("eventCount", "Long event count", Long.class)));
70
71
72
73
74
75 public static final EventType COUNT_EVENT = new EventType("COUNT_EVENT", new MetaData("count", "Number of registered events",
76 new ObjectDescriptor("count", "Number of registered events", Long.class)));
77
78
79
80
81
82 public static final EventType MIN_EVENT = new EventType("MIN_EVENT", new MetaData("Minimum value", "Minimum Double value",
83 new ObjectDescriptor("Minimum value", "Minimum Double value", Double.class)));
84
85
86
87
88
89 public static final EventType MAX_EVENT = new EventType("MAX_EVENT", new MetaData("Maximum value", "Maximum Double value",
90 new ObjectDescriptor("Maximum value", "Maximum Double value", Double.class)));
91
92
93
94
95
96 public static final EventType POPULATION_MEAN_EVENT = new EventType("POPULATION_MEAN_EVENT", new MetaData("Mean value",
97 "Mean Double value", new ObjectDescriptor("Mean value", "Mean Double value", Double.class)));
98
99
100
101
102
103 public static final EventType POPULATION_VARIANCE_EVENT =
104 new EventType("POPULATION_VARIANCE_EVENT", new MetaData("Variance value", "Variance Double value",
105 new ObjectDescriptor("Variance value", "Variance Double value", Double.class)));
106
107
108
109
110
111 public static final EventType POPULATION_SKEWNESS_EVENT =
112 new EventType("POPULATION_SKEWNESS_EVENT", new MetaData("Skewness value", "Skewness Double value",
113 new ObjectDescriptor("Skewness value", "Skewness Double value", Double.class)));
114
115
116
117
118
119 public static final EventType POPULATION_KURTOSIS_EVENT =
120 new EventType("POPULATION_KURTOSIS_EVENT", new MetaData("Kurtosis value", "Kurtosis Double value",
121 new ObjectDescriptor("Kurtosis value", "Kurtosis Double value", Double.class)));
122
123
124
125
126
127
128 public static final EventType POPULATION_EXCESS_KURTOSIS_EVENT = new EventType("POPULATION_EXCESS_KURTOSIS_EVENT",
129 new MetaData("Excess kurtosis value", "Excess kurtosis Double value",
130 new ObjectDescriptor("Excess kurtosis value", "Excess kurtosis Double value", Double.class)));
131
132
133
134
135
136
137 public static final EventType POPULATION_STDEV_EVENT = new EventType("POPULATION_STDEV_EVENT", new MetaData("StdDev value",
138 "StdDev Double value", new ObjectDescriptor("StdDev value", "StdDev Double value", Double.class)));
139
140
141
142
143
144 public static final EventType SUM_EVENT = new EventType("SUM_EVENT",
145 new MetaData("Sum value", "Sum Double value", new ObjectDescriptor("Sum value", "Sum Double value", Double.class)));
146
147
148
149
150
151 public static final EventType SAMPLE_MEAN_EVENT = new EventType("SAMPLE_MEAN_EVENT", new MetaData("Sample mean value",
152 "Sample mean Double value", new ObjectDescriptor("Sample mean value", "Sample mean Double value", Double.class)));
153
154
155
156
157
158 public static final EventType SAMPLE_VARIANCE_EVENT =
159 new EventType("SAMPLE_VARIANCE_EVENT", new MetaData("Sample variance value", "Sample variance Double value",
160 new ObjectDescriptor("Sample variance value", "Sample variance Double value", Double.class)));
161
162
163
164
165
166 public static final EventType SAMPLE_SKEWNESS_EVENT =
167 new EventType("SAMPLE_SKEWNESS_EVENT", new MetaData("Sample skewness value", "Sample skewness Double value",
168 new ObjectDescriptor("Sample skewness value", "Sample skewness Double value", Double.class)));
169
170
171
172
173
174 public static final EventType SAMPLE_KURTOSIS_EVENT =
175 new EventType("SAMPLE_KURTOSIS_EVENT", new MetaData("Sample kurtosis value", "Sample kurtosis Double value",
176 new ObjectDescriptor("sample kurtosis value", "Sample kurtosis Double value", Double.class)));
177
178
179
180
181
182 public static final EventType SAMPLE_EXCESS_KURTOSIS_EVENT = new EventType("SAMPLE_EXCESS_KURTOSIS_EVENT",
183 new MetaData("Sample excess kurtosis value", "Sample excess kurtosis Double value",
184 new ObjectDescriptor("Sample excess kurtosis value", "Sample excess kurtosis Double value", Double.class)));
185
186
187
188
189
190
191 public static final EventType SAMPLE_STDEV_EVENT =
192 new EventType("SAMPLE_STDEV_EVENT", new MetaData("Sample stdDev value", "Sample stdDev Double value",
193 new ObjectDescriptor("Sample stdDev value", "Sample stdDev Double value", Double.class)));
194
195
196
197
198
199
200 public static final EventType WEIGHTED_POPULATION_MEAN_EVENT = new EventType("WEIGHTED_POPULATION_MEAN_EVENT", new MetaData(
201 "Weighted population mean value", "Weighed population mean Double value",
202 new ObjectDescriptor("Weighted population mean value", "Weighted population mean Double value", Double.class)));
203
204
205
206
207
208
209 public static final EventType WEIGHTED_POPULATION_VARIANCE_EVENT = new EventType("WEIGHTED_POPULATION_VARIANCE_EVENT",
210 new MetaData("Weighted population variance value", "Weighted population variance Double value",
211 new ObjectDescriptor("Weighted population variance value", "Weighted population variance Double value",
212 Double.class)));
213
214
215
216
217
218
219 public static final EventType WEIGHTED_POPULATION_STDEV_EVENT =
220 new EventType("WEIGHTED_POPULATION_STDEV_EVENT",
221 new MetaData("Weighted population stdDev value", "Weighted population stdDev Double value",
222 new ObjectDescriptor("Weighted population stdDev value", "Weighted population stdDev Double value",
223 Double.class)));
224
225
226
227
228
229 public static final EventType WEIGHTED_SUM_EVENT =
230 new EventType("WEIGHTED_SUM_EVENT", new MetaData("Weighted sum value", "Weighted sum Double value",
231 new ObjectDescriptor("Weighted sum value", "Weighted sum Double value", Double.class)));
232
233
234
235
236
237
238 public static final EventType WEIGHTED_SAMPLE_MEAN_EVENT = new EventType("WEIGHTED_SAMPLE_MEAN_EVENT",
239 new MetaData("Weighted sample mean value", "Weighted sample mean Double value",
240 new ObjectDescriptor("Weighted sample mean value", "Weighted sample mean Double value", Double.class)));
241
242
243
244
245
246
247 public static final EventType WEIGHTED_SAMPLE_VARIANCE_EVENT = new EventType("WEIGHTED_SAMPLE_VARIANCE_EVENT", new MetaData(
248 "Weighted sample variance value", "Weighted sample variance Double value",
249 new ObjectDescriptor("Weighted sample variance value", "Weighted sample variance Double value", Double.class)));
250
251
252
253
254
255
256 public static final EventType WEIGHTED_SAMPLE_STDEV_EVENT = new EventType("WEIGHTED_SAMPLE_STDEV_EVENT",
257 new MetaData("Weighted sample stdDev value", "Weighted sample stdDev Double value",
258 new ObjectDescriptor("Weighted sample stdDev value", "Weighted sample stdDev Double value", Double.class)));
259
260
261
262
263
264
265
266 public static final EventType TIMED_N_EVENT = new EventType("TIMED_N_EVENT", new MetaData("count",
267 "Number of registered events", new ObjectDescriptor("eventCount", "Long event count", Long.class)));
268
269
270
271
272
273 public static final EventType TIMED_MIN_EVENT = new EventType("TIMED_MIN_EVENT", new MetaData("Minimum value",
274 "Minimum Double value", new ObjectDescriptor("Minimum value", "Minimum Double value", Double.class)));
275
276
277
278
279
280 public static final EventType TIMED_MAX_EVENT = new EventType("TIMED_MAX_EVENT", new MetaData("Maximum value",
281 "Maximum Double value", new ObjectDescriptor("Maximum value", "Maximum Double value", Double.class)));
282
283
284
285
286
287
288 public static final EventType TIMED_WEIGHTED_POPULATION_MEAN_EVENT = new EventType("TIMED_WEIGHTED_POPULATION_MEAN_EVENT",
289 new MetaData("Weighted population mean value", "Weighed population mean Double value", new ObjectDescriptor(
290 "Weighted population mean value", "Weighted population mean Double value", Double.class)));
291
292
293
294
295
296
297 public static final EventType TIMED_WEIGHTED_POPULATION_VARIANCE_EVENT =
298 new EventType("TIMED_WEIGHTED_POPULATION_VARIANCE_EVENT",
299 new MetaData("Weighted population variance value", "Weighted population variance Double value",
300 new ObjectDescriptor("Weighted population variance value",
301 "Weighted population variance Double value", Double.class)));
302
303
304
305
306
307
308 public static final EventType TIMED_WEIGHTED_POPULATION_STDEV_EVENT =
309 new EventType("TIMED_WEIGHTED_POPULATION_STDEV_EVENT",
310 new MetaData("Weighted population stdDev value", "Weighted population stdDev Double value",
311 new ObjectDescriptor("Weighted population stdDev value", "Weighted population stdDev Double value",
312 Double.class)));
313
314
315
316
317
318 public static final EventType TIMED_WEIGHTED_SUM_EVENT =
319 new EventType("TIMED_WEIGHTED_SUM_EVENT", new MetaData("Weighted sum value", "Weighted sum Double value",
320 new ObjectDescriptor("Weighted sum value", "Weighted sum Double value", Double.class)));
321
322
323
324
325
326
327 public static final EventType TIMED_WEIGHTED_SAMPLE_MEAN_EVENT = new EventType("TIMED_WEIGHTED_SAMPLE_MEAN_EVENT",
328 new MetaData("Weighted sample mean value", "Weighted sample mean Double value",
329 new ObjectDescriptor("Weighted sample mean value", "Weighted sample mean Double value", Double.class)));
330
331
332
333
334
335
336 public static final EventType TIMED_WEIGHTED_SAMPLE_VARIANCE_EVENT =
337 new EventType("TIMED_WEIGHTED_SAMPLE_VARIANCE_EVENT",
338 new MetaData("Weighted sample variance value", "Weighted sample variance Double value",
339 new ObjectDescriptor("Weighted sample variance value", "Weighted sample variance Double value",
340 Double.class)));
341
342
343
344
345
346
347 public static final EventType TIMED_WEIGHTED_SAMPLE_STDEV_EVENT = new EventType("TIMED_WEIGHTED_SAMPLE_STDEV_EVENT",
348 new MetaData("Weighted sample stdDev value", "Weighted sample stdDev Double value",
349 new ObjectDescriptor("Weighted sample stdDev value", "Weighted sample stdDev Double value", Double.class)));
350
351 }