Rank of the matrix of terms. Smaller than powers.length when there are not enough distinct samples for all the terms.
late final int rank;