Updated 'generalize' methods to allow for generalizations over a predefined segment length.