get_rec function

Internal function for calculating regression error characteristic