Live data from Hacker News

A word for a value between 0 and 1 (inclusive)

english.stackexchange.com

51–60 of 325 posts

Re: A word for a value between 0 and 1 (inclusive)

#52

"Normalized". That's what we call data that have been scaled to fit on a tidy axis.

One problem with the word normalised is that it implies that there is some true original value from before normalisation that isn't necessarily between 0 and 1. Of course if that's true then the word is ideal, but if not then it's confusing.

Re: A word for a value between 0 and 1 (inclusive)

#55
post #41

Earlier quoted context omitted.

Right. That's the thing we need a word for :) Unit Interval Value is nice but still a bit cumbersome. I mean if we all agreed right now it were called a "poog" then we could just say poog.

UnitInterval is the type. The name of the value should reflect its specific use.

Exactly. The best usage for this would be something like:

    typedef float UnitInterval;

    void do_something_accurately(UnitInterval accuracy);

Re: A word for a value between 0 and 1 (inclusive)

#56

Earlier quoted context omitted.

Right but it’s specifically not, and liable to make people think “3” is an acceptable input

Again, this is bike shedding bait. I'm going by my own experience with basic mathematics in my American education where "percent" is something you multiply a number by, and usually ranges from 0 to 1. Ex. 50% of 12 marbles is 6 (*.5, 50%). But just looking at all the different answers in the comments here means there's no consensus on a "right" way. Hence bike shedding. A decent code base should be consistent so it c…

There might be bike shedding for the best answer, but this is just incorrect. Percent literally means "for one hundred"

Re: A word for a value between 0 and 1 (inclusive)

#59

"Normalized". That's what we call data that have been scaled to fit on a tidy axis.

This has a nice confusion factor because IEEE calls such floats denormalized. Because they may have extra precision and different format.

Perhaps I'm misunderstanding you, but with floating point, denormalized/denormal numbers aren't just numbers with a magnitude less than 1, they're numbers so small that it's no longer possible to adjust the exponent in the usual way, so leading zeroes are used in the mantissa. This reduces precision.

https://en.wikipedia.org/wiki/IEEE_754-1985#Examples

https://wiki.sei.cmu.edu/confluence/display/c/FLP05-C.+Do+no...

Re: A word for a value between 0 and 1 (inclusive)

#60
Shoot. I thought "Proportion" was the One True Correct word, but it's not.

Float values between 0 and 1 are very very useful, and I use them all over the place, and I actually thought everyone did (and everyone called them 'Proportions')

Unlike percentages, you can just multiply them with the number you want the 'proportion' of,

Quick, how do you calculate 20% of 50% of 12345!?

(it's (20/100) * (50/100) * 12345)

Ok, now with 'proportions' 0.2 of 0.5 of 12345 :

Why, that's 0.2 * 0.5 * 12345 .

Am I actually the odd one out here?

Post reply on HN