Class IntervalND
java.lang.Object
org.episteme.core.mathematics.algebra.intervals.IntervalND
Represents an N-dimensional interval (hyperrectangle) over Real numbers.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
ConstructorsConstructorDescriptionIntervalND(List<Real> min, List<Real> max) Creates an N-dimensional interval from min and max points.IntervalND(FieldIntervalND<Real> backing) Creates an N-dimensional interval from a backing FieldIntervalND.IntervalND(Real[] min, Real[] max) Creates an N-dimensional interval from Real arrays. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests whether this set contains the specified element.booleancontainsPoint(List<Real> point) Checks if this space contains the given point.Returns a human-readable description of this set.difference(Set<List<Real>> other) intGets the number of dimensions.booleanGets the backing FieldIntervalND.getMax(int dim) Gets the maximum value for a specific dimension.Gets the maximum point (upper corner).getMidpoint(int dim) Gets the midpoint in a specific dimension.getMin(int dim) Gets the minimum value for a specific dimension.Gets the minimum point (lower corner).getWidth(int dim) Gets the width in a specific dimension.inthashCode()intersection(Set<List<Real>> other) Returns the intersection of this interval with another.booleanisClosed()Checks if this set is closed in the topology.booleanisEmpty()Returnstrueif this set contains no elements.booleanisOpen()Checks if this set is open in the topology.booleanisSubsetOf(Set<List<Real>> other) booleantoString()Returns the bounding interval containing both this and another.volume()Computes the volume (N-dimensional measure) of this interval.
-
Constructor Details
-
IntervalND
Creates an N-dimensional interval from a backing FieldIntervalND. -
IntervalND
-
IntervalND
-
-
Method Details
-
dimension
public int dimension()Gets the number of dimensions. -
getMin
Gets the minimum value for a specific dimension. -
getMax
Gets the maximum value for a specific dimension. -
getMinPoint
-
getMaxPoint
-
getWidth
Gets the width in a specific dimension. -
getMidpoint
Gets the midpoint in a specific dimension. -
getBacking
Gets the backing FieldIntervalND. -
contains
Description copied from interface:SetTests whether this set contains the specified element.This is the fundamental operation of a set - membership testing.
-
containsPoint
Description copied from interface:TopologicalSpaceChecks if this space contains the given point.Named containsPoint to avoid erasure conflict with Set.contains.
- Specified by:
containsPointin interfaceTopologicalSpace<List<Real>>- Parameters:
point- the point to check- Returns:
- true if the point is in this space
-
isEmpty
public boolean isEmpty()Description copied from interface:SetReturnstrueif this set contains no elements.The empty set (∅) is a fundamental concept in set theory. It is the unique set containing no elements.
-
description
Description copied from interface:SetReturns a human-readable description of this set.Examples:
- "â„ (Real Numbers)"
- "ℤ/12ℤ (Integers modulo 12)"
- "{1, 2, 3, 4, 5}"
- Specified by:
descriptionin interfaceSet<List<Real>>- Returns:
- a description of this set
-
intersection
-
union
-
difference
-
isSubsetOf
-
overlaps
-
isOpen
public boolean isOpen()Description copied from interface:TopologicalSpaceChecks if this set is open in the topology.- Specified by:
isOpenin interfaceTopologicalSpace<List<Real>>- Returns:
- true if this is an open set
-
isClosed
public boolean isClosed()Description copied from interface:TopologicalSpaceChecks if this set is closed in the topology.- Specified by:
isClosedin interfaceTopologicalSpace<List<Real>>- Returns:
- true if this is a closed set
-
volume
Computes the volume (N-dimensional measure) of this interval. -
toString
-
equals
-
hashCode
-