function fromTransferFunction
import Modelica;
import Modelica_LinearSystems2;
import Modelica_LinearSystems2.DiscreteTransferFunction;
import Modelica_LinearSystems2.TransferFunction;
import Modelica_LinearSystems2.StateSpace;
import Modelica_LinearSystems2.DiscreteStateSpace;
input TransferFunction tf "continuous transfer function";
input Modelica.Units.SI.Time Ts "Sample time" annotation(
Dialog(group = "Data used to construct discrete from continuous system"));
input Modelica_LinearSystems2.Utilities.Types.Method method = Modelica_LinearSystems2.Utilities.Types.Method.Trapezoidal "Discretization method" annotation(
Dialog(group = "Data used to construct discrete from continuous system"));
output DiscreteTransferFunction dtf;
end fromTransferFunction;