PDRange encode = getEncodeForParameter(boundsSize+1);
x = interpolate(x, boundsValues[boundsSize-1], domain.getMax(), encode.getMin(), encode.getMax());
}
}
COSArray functionValues = new COSArray();
functionValues.add(new COSFloat(x));
COSArray functionResult = function.eval(functionValues);
// clip to range if available
return clipToRange(functionResult);
}