Recipe/Example/Petit Beurre

From Open Food Facts wiki
Revision as of 16:40, 16 January 2025 by Aleene (talk | contribs)
Jump to navigation Jump to search

In an ingredient list often the amount (fraction) of ingredients is not specified. Knowing this is useful to get a better handle on various score. The question is now how we could estimate these fractions using the information that we have (nutritional values of separate ingredients from Ciqual and the total values for a product (a recipe).

A recipe consists of N ingredients, numbered i=0 to N-1.

A recipe has M nutrients j=0 to M-1.

Each ingredient contributes yij to nutrient j.

In a recipe an ingredient has a fraction xi.

The total values for for a nutrient Yj = SUMi=0N-1 xiyij