public Map<String, Object> calculateObjects(Map<String, Object> input) { Map<String, Object> result = new HashMap<String, Object>(); int sampleCount = MathUtil.getInt(input.get(SAMPLECOUNT)); sampleCount = sampleCount == 0 ? 100 : sampleCount; int inputLength = MathUtil.getInt(input.get(INPUTLENGTH)); inputLength = inputLength == 0 ? 10 : inputLength; int targetLength = MathUtil.getInt(input.get(TARGETLENGTH)); targetLength = targetLength == 0 ? 5 : targetLength; result.put(TARGET, DataSet.Factory.LogisticMap(sampleCount, inputLength, targetLength)); return result; } }