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

Avoid NaN values in WeightedSnapshot #1233

Merged
merged 1 commit into from
Dec 19, 2017

Commits on Dec 19, 2017

  1. Avoid NaN values in WeightedSnapshot

    Theoretically, we could have a snapshot with the values which have
    zero weights. In this case a normalized weight will have a NaN value,
    because 0/0 = NaN. We should avoid it and in case a weight is zero,
    make the normalized weight zero too.
    arteam committed Dec 19, 2017
    Configuration menu
    Copy the full SHA
    6cd74c7 View commit details
    Browse the repository at this point in the history