docs: private void updateParams() {
          for (int m = 0; m < documents.length; m++) {
              for (int k = 0; k < K; k++) {
                  thetasum[m][k] += (nd[m][k] + alpha) / (ndsum[m] + K * alpha);
              }
          }
          for (int k = 0; k < K; k++) {
              for (int w = 0; w < V; w++) {
                  phisum[k][w] += (word_topic_matrix[w][k] + beta) / (nwsum[k] + V * beta);
              }
          }
          numstats++;
      }