C++ implementation of multi degrees of freedom trajectory learning using the Gaussian mixture model and Gaussian mixture regression.