10000 update params docstrings in iosys · roryyorke/python-control@1a78cb8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a78cb8

Browse files
committed
update params docstrings in iosys
1 parent 43ce56b commit 1a78cb8

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

control/iosys.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -376,16 +376,17 @@ def dynamics(self, t, x, u, params={}):
376376
right hand side of the dynamical system. If the system is continuous,
377377
returns the time derivative
378378
379-
dx/dt = f(t, x, u)
379+
dx/dt = f(t, x, u, params)
380380
381381
where `f` is the system's (possibly nonlinear) dynamics function.
382382
If the system is discrete-time, returns the next value of `x`:
383383
384-
x[t+dt] = f(t, x[t], u[t])
384+
x[t+dt] = f(t, x[t], u[t], params)
385385
386-
Where `t` is a scalar.
386+
where `t` is a scalar.
387387
388-
The inputs `x` and `u` must be of the correct length.
388+
The inputs `x` and `u` must be of the correct length. The `params`
389+
argument is an optional dictionary of parameter values.
389390
390391
Parameters
391392
----------
@@ -395,6 +396,8 @@ def dynamics(self, t, x, u, params={}):
395396
current state
396397
u : array_like
397398
input
399+
params : dict (optional)
400+
system parameter values
398401
399402
Returns
400403
-------
@@ -421,7 +424,7 @@ def output(self, t, x, u, params={}):
421424
Given time `t`, input `u` and state `x`, returns the output of the
422425
system:
423426
424-
y = g(t, x, u)
427+
y = g(t, x, u[, params])
425428
426429
The inputs `x` and `u` must be of the correct length.
427430
@@ -433,6 +436,8 @@ def output(self, t, x, u, params={}):
433436
current state
434437
u : array_like
435438
input
439+
params : dict (optional)
440+
system parameter values
436441
437442
Returns
438443
-------

0 commit comments

Comments
 (0)
0