ELIFE-ASU / rinform

An R wrapper around the Inform library
https://elife-asu.github.io/rinform
Other
4 stars 3 forks source link

R memory allocation problem #5

Open gvalentini85 opened 7 years ago

gvalentini85 commented 7 years ago

When allocating memory to save the results of the information measures with k-history computed over time series, the user may provide a value of parameter k such that R won't be able to allocate the memory resulting in a SEGMENTATION FAULT.

Find out if it it possible from R to catch the problem of insufficient memory before trying to allocate it.

Functions affected are:

gvalentini85 commented 5 years ago

This issue has been partially solved (i.e., only for transfer entropy and entropy rate) in branch 64-bits-spaces.

The solution need to be extended to the rest of the inform library before this branch can be merged into master.