code: public Type inferType(Term term) {
          if (term instanceof Constant || term instanceof Linear || term instanceof Function) {
              return Type.TakagiSugeno;
          }
          return Type.Tsukamoto;
      }
docs: Infers the type of the defuzzifier based on the given term. If the given
  term is Constant, Linear or Function, then the type is TakagiSugeno;
  otherwise, the type is Tsukamoto
  
  @param term is the given term
  @return the inferred type of the defuzzifier based on the given term