.TRANSFORM.Math.max_len_seq

Information

Predefined generator values that give the max length sequence are taken from: https://en.wikipedia.org/wiki/Linear-feedback_shift_register#Some_polynomials_for_maximal_LFSRs

Create a PRBS or maximum lenqth sequence binary array.


!! Caution: Incorrect generator will cause issues. See scipy.signal.max_len_seq for proper generators based on sequence.

Interface

function max_len_seq
  input Integer seed[:] = {1, 0, 1};
  input Integer generator[size(seed, 1) + 1] = {1, 1, 0, 1};
  input Real bias = 0 "Bias to control middle value";
  output Real y[integer(2^(size(seed, 1)) - 1)];
end max_len_seq;

Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos