#include "incidence.h"
#include "../xerr/xerr.ih"

#include <algorithm>

#include "../globals/globals.h"
#include "../parser/parser.h"
#include "../random/random.h"

#include "../log/log.h"

// static
inline bool Incidence::valid(double sumProb)
{
    return 1 - Globals::TOLERANCE <= sumProb
            and
            sumProb <= 1 + Globals::TOLERANCE;
}

#ifndef SPCH_
using namespace std;
#endif
