Changes

Jump to navigation Jump to search
1,971 bytes removed ,  04:57, 2 April 2015
Line 53: Line 53:  
* Reimplementing in mfile
 
* Reimplementing in mfile
 
This is quite straightforward, although it is important not to make a mistake while taking this approach.
 
This is quite straightforward, although it is important not to make a mistake while taking this approach.
  −
== Where I intend to start ==
  −
  −
I will start with a small step of porting all of the functions needed for [http://www.mpipks-dresden.mpg.de/~tisean/Tisean_3.0.1/index.html| Nonlinear noise reduction]. The functions I will need is: henon (for generating data), addnoise, ghkss and project. They cover all of the three categories I talked about in the first section. I have already reimplemented henon in m-file, it is accessible [http://agora.octave.org/snippet/hOzw/ here]. Both addnoise and project are in FORTRAN and need to be linked to C++ files and compiled into oct files. Lastly, ghkss is implemented in c and needs to be linked to a C++ oct file.
  −
  −
== Where I am at ==
  −
I have already ported henon. I have also been able to link with FORTRAN programs addnoise and project. My progress can be viewed [https://bitbucket.org/josiah425/tisean| here].
  −
  −
== Explanation of what I want to do with each file ==
  −
Each FORTRAN file that need to be linked to an Oct file needs work done on it. I plan to take the following steps with each FORTRAN program:
  −
# Change the FORTRAN program into a subroutine. The arguments of this subroutine will be the parameters that this program would have normally read from the user during execution.
  −
# Move input parsing and validation from the FORTRAN files to the .cc file which will link the respective fortran file to it. This will make the fortran subroutines 'dumb' and unable to distinguish between good and bad data.
  −
# Eliminate all file inputs and outputs. The fortran programs write and read data to/from files. This is unnecessary in Octave, as data can be supplied and retrieved to/from these subroutines directly via oct files.
  −
# Test the oct file against the original library to ensure I didn't make mistakes.
  −
  −
I plan to do similar steps for the c files. I believe this stage will be easier as the c code is much better organized and eliminating input validation & parsing, file inputs and outputs should be a much easier task.
 
156

edits

Navigation menu