Learn R Programming

niarules (version 0.2.0)

calculate_border: Calculate the border value based on feature information and a given value.

Description

This function calculates the border value for a feature based on the feature information and a given value.

Usage

calculate_border(feature_info, value)

Value

The calculated border value.

Arguments

feature_info

Information about the feature.

value

The value to calculate the border for.

Examples

Run this code
feature_info <- list(type = "numerical", lower_bound = 0, upper_bound = 1)
border_value <- calculate_border(feature_info, 0.5)

Run the code above in your browser using DataLab