Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of memory for circ_median #4

Open
markusgschwind opened this issue Jul 18, 2016 · 2 comments
Open

Out of memory for circ_median #4

markusgschwind opened this issue Jul 18, 2016 · 2 comments
Assignees

Comments

@markusgschwind
Copy link

markusgschwind commented Jul 18, 2016

Hi,

When using long vectors of angles (n=170000, but I have not determined the limit), I get the following error:

Out of memory. Type HELP MEMORY for your options.

Error in repmat (line 86)
            B = A(:, ones(siz(2), 1));

Error in circ_dist2 (line 35)
r = angle(repmat(exp(1i*x),1,length(y)) ...

Error in circ_median (line 45)
  dd = circ_dist2(beta,beta);

Error in circ_symtest (line 30)
md = circ_median(alpha);

All the other calculations are done without problem. Is there a possibility to avoid this problem in circ-median too?

Thanks and thanks for this great tool!
Markus

@philippberens
Copy link
Contributor

I'll look into it.

@philippberens
Copy link
Contributor

The implementation is not the most efficient in terms of memory. I can't provide a more efficient one right now, but happy to incorporate any pull requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants