Click or drag to resize

IntervalT Structure

An interval numeric data type that is based on a floating-point type T. This type supports basic arithmetic operations (+, -, *, /) with correctly maintained interval bounds. Instead of representing a value as a single number, an interval represents each value as a range of possibilities that you can perform arithmetic on.
Inheritance Hierarchy
SystemObject
  SystemValueType
    Altaxo.CalcIntervalT

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public struct Interval<T> : IAdditionOperators<Interval<T>, Interval<T>, Interval<T>>, 
	ISubtractionOperators<Interval<T>, Interval<T>, Interval<T>>, IMultiplyOperators<Interval<T>, Interval<T>, Interval<T>>, 
	IDivisionOperators<Interval<T>, Interval<T>, Interval<T>>, IEqualityOperators<Interval<T>, Interval<T>, bool>, 
	IComparisonOperators<Interval<T>, Interval<T>, bool>, IEquatable<Interval<T>>, 
	IComparable<Interval<T>>, IComparable
where T : struct, new(), Object, IFloatingPoint<T>, IRootFunctions<T>, ITrigonometricFunctions<T>

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "T:Altaxo.Calc.Interval`1"]

The IntervalT type exposes the following members.

Constructors
 NameDescription
Public methodIntervalT Initializes a new instance of the IntervalT struct.
Top
Properties
 NameDescription
Public propertyArithmeticAverage Gets the arithmetic average of this interval.
Public propertyStatic memberInflateDown Gets a function that inflates a value towards negative infinity (used to ensure a conservative lower bound).
Public propertyStatic memberInflateUp Gets a function that inflates a value towards positive infinity (used to ensure a conservative upper bound).
Public propertyMax Represents the upper bound of this interval.
Public propertyMin Represents the lower bound of this interval.
Public propertyStatic memberOne Gets a value that represents the number one as a single-point interval, [1,1].
Public propertySize Gets the size of this interval, calculated as Max minus Min.
Public propertyStatic memberTwo Gets a value that represents the number two as a single-point interval, [2,2].
Public propertyStatic memberZero Gets a value that represents the number zero as a single-point interval, [0,0].
Top
Methods
 NameDescription
Public methodAbs Returns the absolute value interval.
Public methodStatic memberAdd Adds two intervals and returns the sum.
Public methodStatic memberClone Creates a copy of the specified interval.
Public methodStatic memberCombine Combines two intervals that meet. This is similar to a union, but the intervals must meet.
Public methodCompareTo(IntervalT)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodCompareTo(Object)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodContains Determines whether this interval contains the specified value.
Public methodStatic memberDivide Divides two intervals and returns the quotient.
Public methodEquals(IntervalT)Indicates whether the current object is equal to another object of the same type.
Public methodEquals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Public methodStatic memberEquals(IntervalT, IntervalT) Compares two values for equality.
Public methodStatic memberFrom(T) Creates a single-point interval and inflates bounds conservatively.
Public methodStatic memberFrom(T, T) Creates an interval with conservatively inflated bounds.
Public methodStatic memberFromExact(T) Creates a single-point interval without inflating bounds.
Public methodStatic memberFromExact(T, T) Creates an interval with exact bounds (no inflation).
Public methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodStatic memberGetInflatedBounds Gets the inflated lower and upper bounds for a computed value.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberIsDisjoint Determines whether two intervals are disjoint. Two intervals are disjoint if no part of one interval is contained in the other.
Public methodStatic memberMaxx Returns the interval that is considered the maximum when comparing bounds.
Public methodStatic memberMultiply Multiplies two intervals and returns the product.
Public methodSqrt Returns an interval that represents the square root of this interval.
Public methodStatic memberSubtract Subtracts two intervals and returns the difference.
Public methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Public methodToString(String, IFormatProvider) Returns a string that represents this instance.
Public methodStatic memberTryParse Attempts to parse a string into an IntervalT.
Top
Operators
 NameDescription
Public operatorStatic memberAddition(IntervalT, IntervalT) Adds two intervals together and returns their sum.
Public operatorStatic memberDivision(IntervalT, IntervalT) Divides two intervals and returns the quotient.
Public operatorStatic memberEquality(IntervalT, IntervalT)Compares two values to determine equality.
Public operatorStatic memberGreaterThan(IntervalT, IntervalT)Compares two values to determine which is greater.
Public operatorStatic memberGreaterThanOrEqual(IntervalT, IntervalT)Compares two values to determine which is greater or equal.
Public operatorStatic member(T to IntervalT) Performs an implicit conversion from T to IntervalT.
Public operatorStatic memberInequality(IntervalT, IntervalT)Compares two values to determine inequality.
Public operatorStatic memberLessThan(IntervalT, IntervalT)Compares two values to determine which is less.
Public operatorStatic memberLessThanOrEqual(IntervalT, IntervalT)Compares two values to determine which is less or equal.
Public operatorStatic memberMultiply(IntervalT, IntervalT) Multiplies two intervals and returns the product.
Public operatorStatic memberSubtraction(IntervalT, IntervalT) Subtracts two intervals and returns their difference.
Public operatorStatic memberUnaryNegation(IntervalT) Returns the negated interval.
Top
See Also