|
From: Richard M. <mu...@cd...> - 2012-11-03 05:27:47
|
Rene: I've re-integrated your FRD branch into trunk. Unit tests seem to be working. Version number is now 0.6c. This is all sitting on top of the changes that I made for to try to help with python 3 testing. Unit tests all run. See ChangeLog for small changes I made when integrating.
I left your branch in place for now. There was a scratch directory that I wasn't sure if you needed or not. If everything looks OK to you in the merge, OK to delete the branch and we can do future tweaking in trunk.
FRD class header attached below so that others can see what is implemented.
Thanks for the great contribution!
-richard
"""The FRD class represents (measured?) frequency response
TF instances and functions.
The FRD class is derived from the Lti parent class. It is used
throughout the python-control library to represent systems in frequency
response data form.
The main data members are 'omega' and 'frdata'. omega is a single
array with the frequency points of the response. frdata is a list of arrays
containing frequency points (in rad/s) and gain data as a complex number.
For example,
>>> frdata[2][5] = numpy.array([1., 0.8-0.2j, 0.2-0.8j])
means that the frequency response from the 6th input to the 3rd
output at the frequencies defined in omega is set to the array
above, i.e. the rows represent the outputs and the columns
represent the inputs.
|