Build vortex metrics computation functions