Return time sequence interval and initial mls value as the last index
function max_len_seq__sine_time input Real weights[:] = {1, 1, 1, 1, 1, 1, 1}; input Integer harmonics[size(weights, 1)] = {1, 2, 4, 8, 16, 32, 64}; input Real bias = 0 "Bias to control middle value"; input Boolean integralTime = true "=false for sum(mls_t) = 1 else mls_t[end] = 1"; output Real mls_t[integer(sum(abs(diff(max_len_seq_sine(weights, harmonics))))) + 1 + 1] "Time intervals and last index is mls[1]"; end max_len_seq__sine_time;