Traits.Alignment states it is calculating:
"which is how well their extremes match, not how close their values are. If both sets are all zero, they're close in value but they have no extremes so the alignment is zero."
Passing {0},{0} into the calculation yields 1
Furthermore, it states the range is [-1, 1] but you can only achieve [0,1] from the current formula.
Bug report Traits.Alignment calculation documentation
-
- Posts: 12
- Joined: Fri Jan 07, 2022 7:43 pm
Re: Bug report Traits.Alignment calculation documentation
Hi,
That's correct; the function was updated in 1.10.8 by popular customer request to compute how close the values are and return a value in the range [0,1] where 0 is opposite and 1 is complete alignment. But I missed updating the documentation. The documentation has been fixed for the upcoming release (1.10.23).
That's correct; the function was updated in 1.10.8 by popular customer request to compute how close the values are and return a value in the range [0,1] where 0 is opposite and 1 is complete alignment. But I missed updating the documentation. The documentation has been fixed for the upcoming release (1.10.23).
-
- Posts: 12
- Joined: Fri Jan 07, 2022 7:43 pm
Re: Bug report Traits.Alignment calculation documentation
Excellent. I assumed it was just a documentation problem. The logic is too critical for it to have made it through testing.