Algorithm for finding offfset distribution model parameters