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

StatsGenerator computes NaN values for standard deviation in the neighbor distribution if bincount is large enough #987

Open
cartercocke opened this issue Feb 17, 2022 · 0 comments

Comments

@cartercocke
Copy link

The StatsGenerator filter computes NaN values for the standard deviation within the neighbor distribution when the number of bins is 14 or more (in the case of equiaxed grains) or 8 or more (in the case of rolled grains). The problem occurs in the following areas where the log of a negative number is evaluated giving a NaN value (or log(0) = -inf).

I'm not sure how this carries forward beyond the Stats Generator filter as the Pack Primary Phases filter still works with these NaN values, but I figured it was worth noting as a potential issue. I believe these neighbor distribution statistics are used here:

VectorOfFloatArray Neighdist = pp->getFeatureSize_Neighbors();

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

No branches or pull requests

1 participant