fuzzyclust.models.make_second_order_plant#

fuzzyclust.models.make_second_order_plant(n_samples=200, excitation='random', noise=0.0, random_state=None)[source]#

The second-order nonlinear benchmark plant of Abonyi, Babuška and Szeifert (2002).

\[y(k) = f\big(y(k-1), y(k-2)\big) + u(k),\qquad f(y_1, y_2) = \frac{y_1 y_2 (y_1 - 0.5)}{1 + y_1^2 + y_2^2}.\]

Following the paper, the identification data use a random input uniformly distributed in \([-1.5, 1.5]\) and the validation data the sinusoid \(u(k)=\sin(2\pi k/25)\).

Parameters:
n_samplesint, default=200
excitation{“random”, “sine”}, default=”random”
noisefloat, default=0.0

Standard deviation of white noise added to the output.

random_stateint, RandomState instance or None, default=None
Returns:
undarray of shape (n_samples,)
yndarray of shape (n_samples,)

Examples

>>> from fuzzyclust.models import make_second_order_plant
>>> u, y = make_second_order_plant(n_samples=100, random_state=0)
>>> u.shape, y.shape
((100,), (100,))

Examples using fuzzyclust.models.make_second_order_plant#

Identification of a nonlinear dynamic system with free-run validation

Identification of a nonlinear dynamic system with free-run validation