Create a linearly spaced 1D array and the special case when n = 1 the average is returned
function linspace_1D extends TRANSFORM.Icons.Function; input Real x1 "Corner value x[1]"; input Real x2 "Corner value x[end]"; input Integer n "Array size"; output Real y[n] "Array"; end linspace_1D;