Metrics Functions

The following functions used in improvelib and can be used as needed.