3,543
edits
Line 199: | Line 199: | ||
If we know how the nutritional data for a product is reported, we can normalise that data. And with the normalised data we have a consistent dataset, which can be used to get the real nutritional values. We will normalise on the per 100g values with the formula: | If we know how the nutritional data for a product is reported, we can normalise that data. And with the normalised data we have a consistent dataset, which can be used to get the real nutritional values. We will normalise on the per 100g values with the formula: | ||
N<sub>100g</sub> = N<sub>100ml</sub> | N<sub>100g</sub> = N<sub>100ml</sub> * sg | ||
In which: | In which: | ||
* N<sub>100g</sub> is the nutritional value per 100g | * N<sub>100g</sub> is the nutritional value per 100g | ||
* N<sub>100ml</sub> is the nutritional value per 100ml | * N<sub>100ml</sub> is the nutritional value per 100ml | ||
* sg the specific gravity of olive oils | * sg the specific gravity of olive oils, for which I use 0.911 | ||
The conversion from a volumetric serving to 100ml is: | |||
N<sub>100ml</sub> = N<sub>serving</sub> * 100 / size<sub>serving</sub> | |||
in which: | |||
* N<sub>100ml</sub> is the nutritional value per 100 ml | |||
* N<sub>serving</sub> is the nutritional value per serving | |||
* size<sub>serving</sub> the serving size in ml | |||
=== 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. |
edits