Total least square cubic splines I am interested in the non-monotonic relationship between two variables.