calculateAbsoluteMinSupport function
Calculates the absolute minimum support count from a relative or absolute value.
If minSupport is >= 1.0, it is treated as an absolute count.
Otherwise, it is treated as a relative value (percentage) of transactionCount.
Implementation
int calculateAbsoluteMinSupport(double minSupport, int transactionCount) {
if (minSupport >= 1.0) {
return minSupport.toInt();
}
return (transactionCount * minSupport).ceil();
}