public static void compareDist(FullResult base, FullResult res)
    {
        System.err.println(Util.append(new StringBuilder(), res.getFilters()));
        double sum = 0.0;
        double max = 0.0;
        for(String key : base.keys()) {
            DiscreteDistr d1 = base.get(key);
            DiscreteDistr d2 = res.get(key);
            Set freedom = d1.combinedKeys(d2);
            if ( d2 == null ) continue;
            double gtest = d1.gtest(d2);
            double chiBound = SFunc.critchi(0.95, freedom.size()-1);
            double normed = gtest / chiBound;
            System.err.println(String.format("   gtest(%-23s)=%8.2e  (%3d;%7.2e) %10.0f%%",
                    key, gtest, freedom.size()-1, chiBound, normed));
            if ( gtest > 0 ) {
                sum += normed;
                max = Math.max(max, normed);
            }
        }
        System.err.println(String.format("   === %8.2e/%8.2e", sum, max));
        System.err.println();
    }