Analysis of a cycloid speed reducer