A word for a value between 0 and 1 (inclusive)
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.
Re: A word for a value between 0 and 1 (inclusive)
#53Re: A word for a value between 0 and 1 (inclusive)
#54Re: A word for a value between 0 and 1 (inclusive)
#55Earlier 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.
typedef float UnitInterval;
void do_something_accurately(UnitInterval accuracy);Re: A word for a value between 0 and 1 (inclusive)
#56Earlier 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…
Re: A word for a value between 0 and 1 (inclusive)
#57So for me "perunage" sound very logical. "Un" means one in French (cent=100 and mille=1000).
Re: A word for a value between 0 and 1 (inclusive)
#58Re: 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.
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)
#60Float 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?