Date Time Interval Structure
Represents an interval of real numbers.
Definition
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public struct DateTimeInterval
- Inheritance
- Object → ValueType → DateTimeInterval
Remarks
Use the DateTimeInterval structure to represent an interval of real numbers. The LowerBound and UpperBound properties return the bounds of the interval. The Width property returns the width of the interval. The Contains(DateTime) method determines whether a value is contained within an interval.
Arithmetic operators are defined for combining intervals. For languages that do not support operator overloading, equivalent static methods have been supplied.
DateTimeInterval structures are immutable. The lower and upper bounds can not be changed. Use the constructor or one of the operator methods to create an DateTimeInterval with new values for the boundaries.Constructors
Date | Constructs a new interval. |
Properties
Lower | Gets the lower bound of the interval. |
Upper | Gets the upper bound of the interval. |
Width | Gets the width of the interval. |
Methods
Add( | Returns an interval shifted by a specified value.. |
Add( | Returns an interval shifted by a specified value.. |
Contains | Tests whether a number is contained in the interval. |
Equals |
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueType.Equals(Object)) |
Get |
Returns the hash code for this instance.
(Overrides ValueType.GetHashCode()) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
Subtract | Returns an interval shifted to the left by a specified value. |
ToString() |
Gets a string representation of the interval.
(Overrides ValueType.ToString()) |
ToString( | Gets a string representation of the interval. |
ToString( | Gets a string representation of the interval. |
Operators
Addition( | Returns an interval shifted by a specified value.. |
Addition( | Returns an interval shifted by a specified value.. |
Equality( | Returns a value indicating whether two instances of DateTimeInterval are equal. |
Inequality( | Returns a value indicating whether two instances of DateTimeInterval are not equal. |
Subtraction( | Returns an interval shifted to the left by a specified value. |