code: public void addFactor(String factorName, T factor, VariablePattern factorPattern) {
      parametricFactors.add(factor);
      factorPatterns.add(factorPattern);
      parametricFactorNames.add(factorName);
    }
docs: Adds a parameterized factor to the log linear model being
  constructed.
  
  @param factor