grim function

The GRIM test (granularity-related inconsistency of means)