Line 214:
Line 214:
* N<sub>serving</sub> is the nutritional value per serving
* N<sub>serving</sub> is the nutritional value per serving
* size<sub>serving</sub> the serving size in ml
* size<sub>serving</sub> the serving size in ml
+
+
From the histograms shown earlier, it is clear that the data does not correspond to these formula's. We need to add a correction factor, which accounts for rounding errors to account for the real serving size.
+
+
Thus:
+
+
N<sub>100g</sub> = N<sub>serving</sub> * 100 * sg * C / size<sub>serving</sub>
+
+
with C the added correction factor.
+
=== Categorisation ===
=== Categorisation ===
The first step to categorise each product into each of the groups.
The first step to categorise each product into each of the groups.