Determine if an array is compatible with a single memory segment.
fit piecewise linear data for a specified number of line segments