coefficient method

double coefficient(
  1. int j
)

Returns the {@code j}th regression coefficient. j the index return the {@code j}th regression coefficient

Implementation

double coefficient(int j) {
  // to make -0.0 print as 0.0
  if (beta[j][0].abs() < 1E-4) return 0.0;
  return beta[j][0];
}