Continuous Empirical (Histogram)
1 I E. s; \) TThe input data is preprocessed and grouped into k classes. Each class contains all samples within a given interval. The k intervals are disjoint but not necessarily adjacent. 9 y y$ m/ b( c) ?$ j! T0 a
) S8 W% g# W' aThe interval includes the lower bound but not the upper bound. If the left bound is equal to the right bound, the interval degenerates to a point. This special case is of interest if the probability of a single point is nonzero. - N& @/ X# i1 ]( X# N9 ~; B
8 j9 a8 a" P7 T6 E8 [
$ H2 x% u [. c7 v8 A
7 ~% _7 h' I/ `" e: U! TThe first column of the frequency table contains the lower bound, the second column contains the lower bound, the third column contains the frequency of the corresponding intervals. The data type of the third column has to be real, time, or integer. The number of values of the input data contained in an interval can be used as frequency, for example.
, Q4 }0 T7 r' j) t6 N6 A/ B! i+ E8 J6 @7 B- D+ P4 O5 c
Usage: z_cEmp(s,tab);
0 V; ~' s+ u, R9 i) ?3 F0 C* L1 B6 a* e% m* w
The expression s (integer) defines the random number stream, tab the frequency table. |