Represents an interval of real numbers.
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Structure Interval |
| C# |
|---|
public struct Interval |
| C++ |
|---|
public value class Interval |
Methods
| Icon | Type | Description |
|---|---|---|
| Add(Interval, Interval) |
Returns the sum of two intervals.
| |
| Add(Interval, Double) |
Returns an interval shifted by a specified value..
| |
| Add(Double, Interval) |
Returns an interval shifted by a specified value..
| |
| Addition(Interval, Interval) |
Returns the sum of two intervals.
| |
| Addition(Interval, Double) |
Returns an interval shifted by a specified value..
| |
| Addition(Double, Interval) |
Returns an interval shifted by a specified value..
| |
| Contains(Double) |
Tests whether a number is contained in the interval.
| |
| Divide(Interval, Double) |
Returns a scaled interval.
| |
| Division(Interval, Double) |
Returns a scaled interval.
| |
| Equality(Interval, Interval) |
Returns a value indicating whether two instances of Interval are equal.
| |
| Equals(Object) |
Returns a value indicating whether this instance is equal to a specified object.
| |
| Finalize() | ||
| GetHashCode() |
Returns the hash code for this instance.
| |
| GetType() | Gets the Type of the current instance. | |
| Inequality(Interval, Interval) |
Returns a value indicating whether two instances of Interval are not equal.
| |
| MemberwiseClone() | Creates a shallow copy of the current Object. | |
| Multiply(Double, Interval) |
Returns a scaled interval.
| |
| Multiply(Interval, Double) |
Returns a scaled interval.
| |
| Multiply(Double, Interval) |
Returns a scaled interval.
| |
| Multiply(Interval, Double) |
Returns a scaled interval.
| |
| Subtract(Interval, Interval) |
Returns the sum of two intervals.
| |
| Subtract(Interval, Double) |
Returns an interval shifted to the left by a specified value.
| |
| Subtract(Double, Interval) |
Returns an interval negated and shifted to the right by a specified value.
| |
| Subtraction(Interval, Interval) |
Returns the sum of two intervals.
| |
| Subtraction(Interval, Double) |
Returns an interval shifted to the left by a specified value.
| |
| Subtraction(Double, Interval) |
Returns an interval negated and shifted to the right by a specified value.
| |
| ToString() |
Gets a string representation of the interval.
| |
| ToString(String) |
Gets a string representation of the interval.
| |
| ToString(String, IFormatProvider) |
Gets a string representation of the interval.
|
Constructors
| Icon | Type | Description |
|---|---|---|
| IntervalNew(Double, Double) |
Constructs a new interval.
|
Properties
| Icon | Type | Description |
|---|---|---|
| LowerBound |
Gets the lower bound of the interval.
| |
| UpperBound |
Gets the upper bound of the interval.
| |
| Width |
Gets the width of the interval.
|
Remarks
Use the Interval 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(Double) 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 staticSharedstatic methods have been supplied.
Interval structures are immutable. The lower and upper bounds can not be changed. Use the constructor or one of the operator methods to create an Interval with new values for the boundaries.