mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Move initialization of RandTest members to header
This commit is contained in:
parent
359ab18bf7
commit
b22caa812d
2 changed files with 17 additions and 17 deletions
|
@ -16,20 +16,30 @@ namespace detail {
|
|||
|
||||
class RandTest {
|
||||
public:
|
||||
RandTest();
|
||||
void add(const void* buf, int bufl);
|
||||
void end(double* r_ent, double* r_chisq, double* r_mean, double* r_montepicalc, double* r_scc);
|
||||
|
||||
private:
|
||||
friend class zeek::EntropyVal;
|
||||
|
||||
int64_t ccount[256]; /* Bins to count occurrences of values */
|
||||
int64_t totalc; /* Total bytes counted */
|
||||
int mp;
|
||||
int sccfirst;
|
||||
int64_t ccount[256] = {0}; /* Bins to count occurrences of values */
|
||||
int64_t totalc = 0; /* Total bytes counted */
|
||||
int mp = 0;
|
||||
int sccfirst = 1;
|
||||
unsigned int monte[RT_MONTEN] = {0};
|
||||
int64_t inmont, mcount;
|
||||
double cexp, montex, montey, montepi, sccu0, scclast, scct1, scct2, scct3;
|
||||
|
||||
int64_t inmont = 0;
|
||||
int64_t mcount = 0;
|
||||
|
||||
double cexp = 0.0;
|
||||
double montex = 0.0;
|
||||
double montey = 0.0;
|
||||
double montepi = 0.0;
|
||||
double sccu0 = 0.0;
|
||||
double scclast = 0.0;
|
||||
double scct1 = 0.0;
|
||||
double scct2 = 0.0;
|
||||
double scct3 = 0.0;
|
||||
};
|
||||
|
||||
} // namespace detail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue