Code Monkey home page Code Monkey logo

frolsidentification's Introduction

FROLSIdentification

written by: Renato Naville Watanabe

Files to perform discrete nonlinear system identification and analysis

The files in this repository were written to perform the system identification of nonlinear systems. An updated version can be found in https://github.com/rnwatanabe/FROLSIdentification. The method used is the algorithm known as Forward Regression with Orthogonal Least Squares (FROLS), developed by Stephen Billings and his group. All the files were written by me, Renato Naville Watanabe, except the v2struct.m file, used to deal with the structs from Matlab.

How to use the files

Download all the files in the same directory. The files were written to run in the Matlab® platform, so if you want to run them on Matlab®, you will need a license of the Matlab® software. To run the functions that compute the Generalized Frequency Response Function (GFRF) and Nonlinear Output Frequency Response Function (NOFRF), you will need a license of the Matlab® Symbolic Math Toolbox.

Once you have downloaded all the files in the same directory, run the FROLSTest.m file to execute an example.

GNU Octave

Although all the files were written in Matlab®, they work equally well in the free software GNU Octave. To use the files from this repository in Octave you must have installed the symbolic package (http://octave.sourceforge.net/symbolic/). To use the symbolic package from Octave you must have a Python installation with the SymPy library. I recommend the use of the Anaconda distribution of Python (https://www.continuum.io/downloads). The files were tested in the Octave 4.0 version on Ubuntu (https://www.gnu.org/software/octave/download.html).

To execute an example on GNU Octave, download all the files in the same directory and run the FROLSTest.m file.

Notebook

An explanation of the algorithm implementation is also available in the format of notebook. You can also download the notebook file and execute in your own computer. In this case you will need to install the Jupyter environment and either the Matlab or Octave kernel.

How to cite this work

If you use the codes from this repository, please cite the following paper as the used implementation of the algorithm:

"WATANABE, R. N.; KOHN, A. F. System identification of a motor unit pool using a realistic neuromusculoskeletal model. In: 5th IEEE RAS & EMBS International Conference on Biomedical Robotics and Biomechatronics, 2014. p. 610–615."

If you use the GFRF part of this repository, please cite the following paper as the used implementation of the algorithm:

"WATANABE, R. N, ; KOHN, A.F .(2017). Nonlinear frequency-domain analysis of the transformation of cortical inputs by a motoneuron pool-muscle complex. IEEE Transactions on Neural Systems and Rehabilitation Engineering, 4320(c), 1–1."

You can find the Bibtex file of this reference here.

Funding

The development of the software presented here was fully funded by the São Paulo Research Foundation (FAPESP, grant number 2011/21103-7).

License

This work is licensed under the GNU GENERAL PUBLIC LICENSE 3.

frolsidentification's People

Contributors

rnwatanabe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

frolsidentification's Issues

mfrols_par

Hello~thanks for your code.
I find that mfrols_par.m is the same with mfrols.m, the function file didn't use "phoL" and "flag" these two parameters, so I am so confused with that.
Looking forward to your suggestions.

Matlab and octave running problems

Hi there,

Thanks for releasing your software.

When I run in Octave 4.2.2 :
error: formula: FUN must be an inline function
error: called from
isequal at line 57 column 5
plotGFRF at line 87 column 9
FROLSTest at line 141 column 5

When I run FROLSTest in Matlab R2018a, I get the following error :
Undefined function or variable 'matlabpool'.
Error in NARXModelIdentificationOf2Signals (line 88)
matlabpool open 6 % this is the number of cores to use during the processing. You can change it.
Error in FROLSTest (line 56)
[Da, a, la, ERRs] = NARXModelIdentificationOf2Signals(input, output, degree, mu, my, delay, dataLength, divisions, ...

When I run FROLSTest in Matlab R2014 :
Undefined function or variable 'phoL'.

Error in NARXModelIdentificationOf2Signals (line 89)
beta = mfrols_par(p, output, phoL, pho, s, flag);

Error in FROLSTest (line 56)
[Da, a, la, ERRs] = NARXModelIdentificationOf2Signals(input, output, degree, mu, my, delay, dataLength, divisions, ...

Any suggestions ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.