getting train and test data for gaussian simulation