Numerical Signatures of Antipatterns: An Approach based on B-Splines