wilsonrljr / sysidentpy

A Python Package For System Identification Using NARMAX Models
https://sysidentpy.org
BSD 3-Clause "New" or "Revised" License
380 stars 77 forks source link

Linear model structure #130

Closed lucas-mior closed 4 months ago

lucas-mior commented 4 months ago

Hello, can sysidentpy be used to obtain a linear system from input data? If so, how?

wilsonrljr commented 4 months ago

Hey @lucas-mior . Yes, SysIdentPy can do that. To obtain a linear model structure, just make sure to set the degree of the basis function equal to 1.

basis_function = Polynomial(degree=1)

You should notice that even in cases where the degree of the basis function is higher than 1, the final model might be linear. But, to make sure you are only looking for linear models, I suggest you to set the degree of the basis function equal to 1.