def correlate(params, corrmat):
<EOL>assert all(<EOL>[isinstance(param, UncertainFunction) for param in params]<EOL>), '<STR_LIT>'<EOL>data = np.vstack([param._mcpts for param in params]).T<EOL>new_data = induce_correlations(data, corrmat)<EOL>for i in range(len(params)):<EOL><INDENT>params[i]._mcpts = new_data[:, i]<EOL><DEDENT>
Force a correlation matrix on a set of statistically distributed objects.
This function works on objects in-place.

Parameters
----------
params : array
    An array of of uv objects.
corrmat : 2d-array
    The correlation matrix to be imposed