some useful functions for mixture clustering and regression
The writing style of these codes is directly based on mathematical formulas. It may not be directly used in your data, but you can easily modify it, such as the distribution of error terms and the way in which data are generated.