Regularity functions for homogeneous algebras