DynComm Documentation for Developers of new Post Processing Algorithms
Instructions for adding new Post Processing Algorithms to the DynComm package.
This section provides step by step instructions on how to implement a new post processing algorithm and how to integrate it into the DynComm package.
Go to the project source and get an appropriate template for your algorithm
from the "dev" folder on the root of the project source.
Different languages are distinguished by the extension of the file.
If a template is not available use one from a language that is most related
to the language you intend to use or use the R template to, at least,
provide you with the function names, types of inputs and types of outputs.
Implement the new algorithm inside the template, preferably, inside a
private function. The algorithm, that is the private function, must be
called at the end of the constructor.
All API functions must only be used to convert between data types and to
return data. No calculations should be performed in them.
Temporarily add any library required by the algorithm in your source file. It will have to be removed later but, for now, it is useful for testing.
Depending on the programming language used, do the following:
Choose the "TemplateDynCommPostProcess.R" template.
Save the source file of the new algorithm in the "R-CRAN/R" folder.
The name of the file should reflect the name of the algorithm and start with the word "postProcess".
Test the algorithm independently of the DynComm package. If programming in...
You can "source" your R file.
Use an applicable main algorithm of the DynComm package to generate data to your post processing algorithm. Use the tests performed as examples and write them in the documentation when it is created.
If the algorithm you are creating has associated bibliography, add reference to it in the existing "REFERENCES.bib" file.
Create documentation for your algorithm. This involves adding documentation in
three files.
The first is the developer documentation on the same file you implemented your
algorithm. If using a template, there is already a documentation template for
you to modify.
This documentation must have a detailed description of the algorithm, including
a description of how it works, its parameters and contain examples that can be
used for automatic testing.
The second file is the "POSTPROCESSING.R" where the user friendly documentation
is written. This documentation should have a high level description of the
algorithm, acceptable parameters and resource utilization.
The thrird file is the "DynCommPostProcess.R" where it says "document new
algorithms here". This documentation should use the same format used for other
algorithms with a very small description of the algorithm, preferably just two
lines, with a link to the user friendly documentation and references to
publications.
Add the name of your algorithm to the POSTPROCESSING list in the
"DynCommPostProcess.R" file under the marker that says "list new algorithms
here".
Add your algorithm parameters to the matrix in the "DynComm.R" file under the
marker that says "add parameters here".
Add a source command to the "DynCommPostProcess.R" file under the marker that
says "Include R sources here".
Add any R libraries required by your algorithm to the "DynComm.R" file under
the marker that says "List imports here".
Remove all libraries from your algorithms' R source file.
You should now be able to build the package and, if everything went right, your algorithm is successfuly integrated into this package. Congratulations :D
poltergeist0
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.