implementation entropy metric