Click or drag to resize

Interval Class

Class Interval represents a numeric interval with inclusive or exclusive lower and upper bounds.
Inheritance Hierarchy

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.3
Syntax
[SerializableAttribute]
public class Interval : ICloneable

The Interval type exposes the following members.

Constructors
  NameDescription
Public methodInterval
Default constructor. Constructs the open interval (0, 1).
Public methodInterval(Double, Double, IntervalType)
Constructs an Interval instance of the specifed type with the given endpoints.
Top
Properties
  NameDescription
Public propertyIntervalType
Gets and sets the interval type.
Public propertyMax
Gets the right endpoint of the interval (upper bound).
Public propertyMin
Gets the value of the left-hand endpoint (lower bound).
Top
Methods
  NameDescription
Public methodClone
Creates a deep copy of this interval.
Public methodEquals
Tests for equality of this interval and another interval.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Returns an integer hash code for this interval.
(Overrides ObjectGetHashCode.)
Public methodIsIn
Determines if the given data point lies within the interval.
Public methodSetEndPoints
Method to set the left and right endpoints for self.
Public methodToString
Returns a formatted string representation of this interval using conventional notation.
(Overrides ObjectToString.)
Public methodToString(String)
Returns a formatted string representation of this interval using conventional notation.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Equality operator. Tests for equality of two intervals.
Public operatorStatic memberInequality
Inequality operator. Tests for inequality of two intervals.
Top
Fields
  NameDescription
Protected fieldintervalType_
Protected fieldmax_
Protected fieldmin_
Top
See Also