Automatic ice-cream characterization by impedance measurements for optimal machine setting