Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8855403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:07:39+00:00 2026-06-14T14:07:39+00:00

Say I have an integer value coming from a hardware sensor, and I don’t

  • 0

Say I have an integer value coming from a hardware sensor, and I don’t know its bounds, what’s the best way to normalize this value to a bounded range, like [0-1]?

From experimentation, I know what the upper and lower bounds are likely to be, but I don’t have strict values for those. I also know the value grows exponentially.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:07:40+00:00Added an answer on June 14, 2026 at 2:07 pm

    You have upper and lower bounds corresponding to MIN_INT and MAX_INT. Map MAX_INT to 1 and MIN_INT to 0; divide each input x by MAX_INT + |MIN_INT|. This will map the values into the required range but it won’t necessary be optimal (i.e., you may have unused subranges). If you can approximate the upper and lower bounds, take them and add some value that will ensure safety (i.e., the input can’t deviate from the range with this safety value) and replace the MAX_INT and MIN_INT in the mapping with these calculated boundaries.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a integer value coming from command line. Its like 12345 or 2343455435
Say I have an integer value that I output to a django template say
Lets say I have a function that needs to return some integer value. but
I have a table with four columns, say P_Key(int), Ref_Key(int), Key(String), Value(Integer). I want
Say I have an integer, 9802, is there a way I can split that
I have this, which is calling an integer value say: 2500. echo number_format({$row2['count(cID)); This
So, maybe this is a bad design; I don't know. But say I have
If we have a Map<T, Integer> , let's say the Integer value represents how
Say i have an integer array i1 with value {1,-1,-1,1}; is there an easy
Let's say I have some_value = 23 I use the Integer 's times method

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.