calculate_selected_category {niarules} | R Documentation |
This function calculates the selected category based on a given value and the total number of categories.
calculate_selected_category(value, num_categories)
value |
The value to calculate the category for. |
num_categories |
The total number of categories. |
The calculated selected category.
selected_category <- calculate_selected_category(0.3, 5)