Partitioning ordered variables into discrete states for discriminant analysis of ecological classifications