tcplFit function

Fit the data with the constant, hill, and gain-loss models