A word for a value between 0 and 1 (inclusive)
251–260 of 325 posts
Re: A word for a value between 0 and 1 (inclusive)
#252Re: A word for a value between 0 and 1 (inclusive)
#253Re: A word for a value between 0 and 1 (inclusive)
#254Re: A word for a value between 0 and 1 (inclusive)
#255I don't think this is a naming issue at all. In the provided example, 'Accuracy' is the correct name for the parameter, as that's what the parameter represents, accuracy. The fact that accuracy should be given as a value in an interval from 0 to 1 should be a property of parameter type . In other words, the parameter should not be a float, but a more constrained type that allows floats only in [0,1]. EDIT: Some of yo…
Re: A word for a value between 0 and 1 (inclusive)
#256Is there a resource for "help naming stuff"? Naming is hard. Especially so when you dabble in domains you're not learned in. I have almost no math background so sometimes I really struggle to know what to name things. My latest example is, "I need to provide a flag to switch if this element is positive or negative. What do I name the flag?" (came up with simply: sign, or polarity)
For booleans I generally stick to the `isX` format. So in your case, `isPositive` (or `isNegative` depending on your preference)
But I messed up my own example. The one I was reaching for was a flag to set “clockwise or anti clockwise or neither”
I was looking for the terminology for clockwiseness
Re: A word for a value between 0 and 1 (inclusive)
#257Re: A word for a value between 0 and 1 (inclusive)
#258Earlier quoted context omitted.
I always use ratio for this kind of number. Though it could be bigger than 1 since 120% == 1.2
Yes, I was thinking something like proper ratio but I don't think that's standard plus I think it's getting pedantic. The takeaway is words are mostly a leaky abstraction, imperfect model for math concepts. But I guess if you're a clever programmer you could call it a ThielAccuracy, or ThielRatio
Re: A word for a value between 0 and 1 (inclusive)
#259Re: A word for a value between 0 and 1 (inclusive)
#260Earlier quoted context omitted.
Genuine question, i'm no math expert: if you're using the value by multiplying it with some other value, does that not imply it qualifies as normalised? i.e. say you have a width of 500 and you want to move half way across so you have this value of 0.5 to get 250. By dividing 250 by 500, aren't we in fact normalising it?
> if you're using the value by multiplying it with some other value, does that not imply it qualifies as normalised Certainly, "normalisation" can mean something more general than "rescale to the interval [0,1]". For example, "rescaling to the interval [0, 20]" might make sense in some contexts and would usually count as a type of normalisation, and would still involve muliplying by a number. But that would be multip…
I'm very clumsily trying to say that if:
width / maxWidth = normalWidth
then: normalWidth * maxWidth = width.
And so, even though we aren't necessary calculating the normal in the second equation, we can still name our variable a 'normal' as rearranging proves that is indeed what the value is.Edit: formatting