The error function for fitting of models to immittance data