djanloo / quilt

A multiscale neural simulator
MIT License
0 stars 0 forks source link

Numerical Noise buildup in NCERK #20

Closed djanloo closed 1 month ago

djanloo commented 1 month ago

The noise in interpolation between timesteps seems to build up over time. This should not happen since the polynomials are fixed. bug_NCE8

bug_NCE9

djanloo commented 1 month ago

Numerical noise is highly reduced if Jansen-Rit population potential is plotted instead of rate. This probably means that the error is introduced in the conversion.

1

djanloo commented 1 month ago

A huge part of the numerical error was introduced while streaming to the output file. Setting the precision to the max number of significant digits solved the issue.

Rate (timestep = 2ms): 2

djanloo commented 1 month ago

This was an output bug. Setting the parameters of the oscillators to double does not substantially affect the precision. Parameters are kept to be float.