public static LogMath getLogMath(String  context) { LogMath logMath = (LogMath) contextMap.get(context); if (logMath == null) { SphinxProperties props = SphinxProperties.getSphinxProperties(context); double base = props.getDouble(PROP_LOG_BASE, PROP_LOG_BASE_DEFAULT); boolean useTable = props.getBoolean(PROP_USE_ADD_TABLE, PROP_USE_ADD_TABLE_DEFAULT); logMath = new LogMath(base, useTable); contextMap.put(context, logMath); } return logMath;
public static  LogMath getLogMath(double base, boolean useTable) { return new LogMath(base, useTable);
     public static LogMath getLogMath(String  context) {	 LogMath logMath = (LogMath) contextMap.get(context);	 if (logMath == null) {	    SphinxProperties props = 		    SphinxProperties.getSphinxProperties(context);	    double base = props.getDouble(PROP_LOG_BASE, 					  PROP_LOG_BASE_DEFAULT);	    boolean useTable = props.getBoolean(PROP_USE_ADD_TABLE, 						PROP_USE_ADD_TABLE_DEFAULT);	    logMath = new LogMath(base, useTable);	    contextMap.put(context, logMath);	 } 	 return logMath;     }