This code implements the one parameter model from Piantadosi (2018). The code defaultly reads a .png image, chooses a random black y value for each x, and fits a scatter plot to those values, returning the fitted values.