Giter VIP home page Giter VIP logo

Comments (3)

tpietzsch avatar tpietzsch commented on August 17, 2024

Thanks for pointing these out, Barry! Both are clearly bugs. I just pushed the fix.

I fixed the copy constructor and removed the AbstractRealInterval(double[] dimensions) constructor.
The way we defined it, min and max are inclusive. So for (integer) Interval with min=0, dimensions=max+1.
Because every Interval is also a RealInterval, we decided that RealInterval has no dimensions() method (exactly because the dimensions=max+1 makes no sense here). Therefore the (double[] dimensions) constructor also makes no sense.

The alternative would have been to define min as inclusive and max as exclusive. Maybe we should have done that, now it would be a lot of work to change it (but not impossible)

from imglib2.

bdezonia avatar bdezonia commented on August 17, 2024

Thanks for the fixes Tobias. Shall we close this issue? Or did you want feedback on the exclusive max idea?

from imglib2.

tpietzsch avatar tpietzsch commented on August 17, 2024

Sorry, Barry. I just forgot. I'll close the issue now. Feedback on exclusive vs inclusive max is welcome though :)

from imglib2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.