[Contents] [TitleIndex] [WordIndex

The initial plan was to implement all the statistics blocks from Matlab. This includes variance, minimum, maximum, RMS, std, correlation, etc. Refer to this page for details.

I started implementation of the variance block using the Scilab computational function. The ultimate was to implement it in C. However, I realized that the Scilab variance function had a bug. In order to check whether the function had been updated, I did a git pull to update my sources to the latest versions. However after the git pull, my Scilab stopped working. Upon doing a re-make, I got the following error:

/tmp/camlasm5b56ae.s: Assembler messages: /tmp/camlasm5b56ae.s: Error: .size expression for camlInstantiation__evaluate_der_475 does not evaluate to a constant File "src/translator/instantiation/instantiation.ml", line 1, characters 0-1: Error: Assembler error, input left in file /tmp/camlasm5b56ae.s make[2]: *** [src/translator/instantiation/instantiation.cmx] Error 2 rm src/translator/parsing/lexer.ml src/translator/parsing/parser.ml make[2]: Leaving directory `/media/C8B8FABBB8FAA75A/scilab/scilab/modules/scicos' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/media/C8B8FABBB8FAA75A/scilab/scilab/modules' make: *** [all-recursive] Error 1

I haven't been able to correct the error as yet. Upon running sudo ./bin/scilab I get an error saying cannot find scilab-bin.

I filed a bug report for the variance function nonetheless.

Since, statistics functions would be needed frequently in the other signal processing blocks, I created a statistics library. I decided to use the C++ STL data structures. I coded the variance block, and the module compiled successfully (exec builder.sce and exec loader.sce ran without errors). I then created a simple simulation varianceblock.xcos in the demos folder to test the block. However, upon running the block, I get a yellow exclamation triangle (warning symbol) that reads Initialisation problem:. I am currently trying to figure out what is wrong.

The plan for next week is to debug this issue, and get the Statistics toolbox ready.

2022-09-08 09:26