function logisticInterpolation input Real lower; input Real upper; input Real x; input Real k; input Real x0; output Real y; end logisticInterpolation;