The effect of the dislocation distribution on the electrical resistivity in deformed metals