pymgipsim.Probability.pdfs_samplers.generate_random_percentages

generate_random_percentages(number_of_days, number_of_subjects, number_of_meals, lower_limit=0.2, upper_limit=0.6)[source]

Generates random percentage values for a given number of subjects, meals, and days.

Parameters: - number_of_days (int): The number of days. - lower_limit (float): The lower limit for random percentage generation. - upper_limit (float): The upper limit for random percentage generation. - number_of_subjects (int): The number of subjects. - number_of_meals (int): The number of meals.

Returns: - percentages (numpy.ndarray): A 3D array of random percentages with dimensions (number_of_subjects, number_of_days, number_of_meals) where the sum along the second axis is 1.