calculate_selected_category {niarules} | R Documentation |
Calculate the selected category based on a value and the number of categories.
Description
This function calculates the selected category based on a given value and the total number of categories.
Usage
calculate_selected_category(value, num_categories)
Arguments
value |
The value to calculate the category for. |
num_categories |
The total number of categories. |
Value
The calculated selected category.
Examples
selected_category <- calculate_selected_category(0.3, 5)
[Package niarules version 0.1.0 Index]