Skip to content

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

@cartercocke

Description

@cartercocke

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions