get_nb_best_combinations: returns the number of appearance of each interresting subset...

Description Usage Arguments Value

Description

returns the number of appearance of each interresting subset in the list of unique, with taking into account - this time - the percentage of ingredient that cover the recepies (e.g. if recipie is carotte oeuf fromage, the subset "carotte" covers 33% of the recipie) if percentage demanded is 40% than the subset "carotte" won't appear.

Usage

1
get_nb_best_combinations(all_subsets, percentage)

Arguments

all_subsets

all possible subsets from the original list of ingredients

percentage

miminum percentage of the recipe to be covered by the subset of ingredients

Value

list of occurences for each subset


antoinepay/foodx documentation built on May 6, 2019, 4:30 p.m.