Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Gap on calculating Length member of IntRange Structure in AForge core #208

Closed
hzawary opened this issue Mar 6, 2016 · 1 comment
Closed

Comments

@hzawary
Copy link
Contributor

hzawary commented Mar 6, 2016

Hi friends,

In AForge core to calculating length in IntRange is deffirence between maximum and minimum values, but if we have range [-3 .. 3] for example, length will be 7 instead 6. In other word, deffirence betwwen max limit and min limit plus 1!

Best regards,
HZ:)

@cesarsouza
Copy link
Member

Hi Zawary!

It depends on whether the IntRange should have its upper limit interpreted as inclusive or exclusive. In the current implementation, the upper limit of IntRange is treated as an exclusive value, as in the DoubleRange case.

Regards,
Cesar

@hzawary hzawary closed this as completed Aug 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants