Normalize a set of numbers into scale range

Status
Not open for further replies.

metalasia

Newbie level 5
Joined
Sep 12, 2005
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,378
scale number range

hai .... i have some problem .... hope u guys can help ...

if i have a set of numbers ... (10002,10568,14587, .....)
is it posibble to scale the numbers into specific range ... i need to scale the number into (0 to 255).

i only know how to scale the number into (0 to 1)

thanx
 

normalize a range of numbers


Take logarithm, process the data, and finally take antilog.

Alternatively you can convert the numbers in binary system and later convert them to decimal system.
 

how to normalize a set of numbers

Scaling from 0-255 is the same as scaling from 0-1, then multiplying by 255.
jiveshgovil has hit on something ...
If the data are to be displayed (presuming 0-255 might be pixel values or such), you might want to scale a function of the data rather than the data themselves, in order to spread the values more uniformly (as in contrast enhancement and such).
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…