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

[SEDONA-479] Update RS_Normalize #1232

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

prantogg
Copy link
Contributor

@prantogg prantogg commented Feb 2, 2024

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

What changes were proposed in this PR?

Fixes incorrect behavior of RS_Normalize for certain arrays and handles uniform arrays.

How was this patch tested?

Passes new and existing tests

Did this PR include necessary documentation updates?

  • Yes, I have updated the documentation update.

@@ -2468,7 +2468,7 @@ This function only accepts integer as factor before `v1.5.0`.

### RS_Normalize

Introduction: Normalize the value in the array to [0, 255]
Introduction: Normalize the value in the array to [0, 255]. Uniform arrays are set to 0 after normalization.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by this?

Copy link
Contributor Author

@prantogg prantogg Feb 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arrays with all identical values are set to 0 after normalizing

@jiayuasu jiayuasu added this to the sedona-1.6.0 milestone Feb 4, 2024
@jiayuasu jiayuasu merged commit 4b4ab6f into apache:master Feb 4, 2024
47 checks passed
jiayuasu pushed a commit that referenced this pull request May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants