Extreme Optimization™: Complexity made simple.

Math and Statistics
Libraries for .NET

  • Home
  • Features
    • Math Library
    • Vector and Matrix Library
    • Statistics Library
    • Performance
    • Usability
  • Documentation
    • Introduction
    • Math Library User's Guide
    • Vector and Matrix Library User's Guide
    • Data Analysis Library User's Guide
    • Statistics Library User's Guide
    • Reference
  • Resources
    • Downloads
    • QuickStart Samples
    • Sample Applications
    • Frequently Asked Questions
    • Technical Support
  • Blog
  • Order
  • Company
    • About us
    • Testimonials
    • Customers
    • Press Releases
    • Careers
    • Partners
    • Contact us
Introduction
Deployment Guide
Nuget packages
Configuration
Using Parallelism
Expand Mathematics Library User's GuideMathematics Library User's Guide
Expand Vector and Matrix Library User's GuideVector and Matrix Library User's Guide
Expand Data Analysis Library User's GuideData Analysis Library User's Guide
Expand Statistics Library User's GuideStatistics Library User's Guide
Expand Data Access Library User's GuideData Access Library User's Guide
Expand ReferenceReference
  • Extreme Optimization
    • Features
    • Solutions
    • Documentation
    • QuickStart Samples
    • Sample Applications
    • Downloads
    • Technical Support
    • Download trial
    • How to buy
    • Blog
    • Company
    • Resources
  • Documentation
    • Introduction
    • Deployment Guide
    • Nuget packages
    • Configuration
    • Using Parallelism
    • Mathematics Library User's Guide
    • Vector and Matrix Library User's Guide
    • Data Analysis Library User's Guide
    • Statistics Library User's Guide
    • Data Access Library User's Guide
    • Reference
  • Reference
    • Extreme
    • Extreme.Collections
    • Extreme.Data
    • Extreme.Data.Json
    • Extreme.Data.Matlab
    • Extreme.Data.R
    • Extreme.Data.Stata
    • Extreme.Data.Text
    • Extreme.DataAnalysis
    • Extreme.DataAnalysis.Linq
    • Extreme.DataAnalysis.Models
    • Extreme.Mathematics
    • Extreme.Mathematics.Algorithms
    • Extreme.Mathematics.Calculus
    • Extreme.Mathematics.Calculus.OrdinaryDifferentialEquations
    • Extreme.Mathematics.Curves
    • Extreme.Mathematics.Curves.Nonlinear
    • Extreme.Mathematics.Distributed
    • Extreme.Mathematics.EquationSolvers
    • Extreme.Mathematics.Generic
    • Extreme.Mathematics.LinearAlgebra
    • Extreme.Mathematics.LinearAlgebra.Implementation
    • Extreme.Mathematics.LinearAlgebra.IterativeSolvers
    • Extreme.Mathematics.LinearAlgebra.IterativeSolvers.Preconditioners
    • Extreme.Mathematics.Optimization
    • Extreme.Mathematics.Optimization.LineSearches
    • Extreme.Mathematics.Random
    • Extreme.Mathematics.SignalProcessing
    • Extreme.Providers
    • Extreme.Providers.InteropServices
    • Extreme.Statistics
    • Extreme.Statistics.Distributions
    • Extreme.Statistics.Multivariate
    • Extreme.Statistics.Tests
    • Extreme.Statistics.TimeSeriesAnalysis
  • Extreme.Mathematics
    • AccuracyGoal Structure
    • AlgorithmStatus Enumeration
    • ArrayAttributes Structure
    • ArrayMath Class
    • ArrayMutability Enumeration
    • BigFloat Class
    • BigInteger Structure
    • BigRational Structure
    • CategoricalVector(T) Class
    • Complex(T) Structure
    • Constants Class
    • ConvergenceCriterion Enumeration
    • CoreImplementations(T) Class
    • DecimalMath Class
    • Dimension Enumeration
    • DimensionMismatchException Class
    • DimensionType Enumeration
    • DistributedDataLocation Enumeration
    • DoubleComparer Class
    • Elementary Class
    • ElementType(T) Class
    • FunctionMath Class
    • FunctionWithDerivative Delegate
    • GenericCoreProvider(T) Class
    • GenericImplementations Class
    • ICategoricalVector Interface
    • IDistributed Interface
    • InsufficientDataException Class
    • IntegerMath Class
    • Intent Enumeration
    • Interval Structure
    • Interval(T) Structure
    • IPermutable Interface
    • ISummarizable Interface
    • Iterators Class
    • IVector Interface
    • MachineConstants Class
    • ManagedCoreProviderOfSingle Class
    • Math(T) Class
    • Matrix Class
    • Matrix(T) Class
    • MatrixDiagonal Enumeration
    • MatrixElementOrder Enumeration
    • MatrixExtensions Class
    • MatrixNorm Enumeration
    • MatrixOperationSide Enumeration
    • MatrixStructure Enumeration
    • MatrixTriangle Enumeration
    • MutabilityBehaviour Enumeration
    • NumericsConfiguration Class
    • Operations(T) Class
    • Permutation Class
    • Quad Structure
    • RandomExtensions Class
    • Range Structure
    • RoundingMode Enumeration
    • SingleConstants Class
    • SinglePrecisionImplementations Class
    • Slice Structure
    • SolutionReport(T) Class
    • SolutionReport(T, TError) Class
    • Special Class
    • SummaryOptions Class
    • SymbolicMath Class
    • TotalLossOfPrecisionException Class
    • TransposeOperation Enumeration
    • TypedVectorWrapper(K, T) Structure
    • Vector Class
    • Vector(T) Class
    • VectorExtensions Class
  • Interval Structure
    • Interval Constructor
    • Properties
    • Methods
    • Operators and Type Conversions

Interval Structure

Extreme Optimization Numerical Libraries for .NET Professional
Represents an interval of real numbers.

Namespace:  Extreme.Mathematics
Assembly:  Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
Syntax

C#
VB
C++
F#
Copy
[SerializableAttribute]
public struct Interval
<SerializableAttribute>
Public Structure Interval
[SerializableAttribute]
public value class Interval
[<SealedAttribute>]
[<SerializableAttribute>]
type Interval =  struct end

The Interval type exposes the following members.

Constructors

  NameDescription
Public methodInterval
Constructs a new interval.
Top
Properties

  NameDescription
Public propertyCenter
Gets the center of the interval.
Public propertyLowerBound
Gets the lower bound of the interval.
Public propertyUpperBound
Gets the upper bound of the interval.
Public propertyWidth
Gets the width of the interval.
Top
Methods

  NameDescription
Public methodStatic memberAdd(Double, Interval)
Returns an interval shifted by a specified value..
Public methodStatic memberAdd(Interval, Interval)
Returns the sum of two intervals.
Public methodStatic memberAdd(Interval, Double)
Returns an interval shifted by a specified value..
Public methodContains
Tests whether a number is contained in the interval.
Public methodStatic memberDivide
Returns a scaled interval.
Public methodEquals
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberMultiply(Double, Interval)
Returns a scaled interval.
Public methodStatic memberMultiply(Interval, Double)
Returns a scaled interval.
Public methodStatic memberSubtract(Double, Interval)
Returns an interval negated and shifted to the right by a specified value.
Public methodStatic memberSubtract(Interval, Interval)
Returns the sum of two intervals.
Public methodStatic memberSubtract(Interval, Double)
Returns an interval shifted to the left by a specified value.
Public methodToString
Gets a string representation of the interval.
(Overrides ValueTypeToString.)
Public methodToString(String)
Gets a string representation of the interval.
Public methodToString(String, IFormatProvider)
Gets a string representation of the interval.
Top
Operators

  NameDescription
Public operatorStatic memberAddition(Double, Interval)
Returns an interval shifted by a specified value..
Public operatorStatic memberAddition(Interval, Interval)
Returns the sum of two intervals.
Public operatorStatic memberAddition(Interval, Double)
Returns an interval shifted by a specified value..
Public operatorStatic memberDivision
Returns a scaled interval.
Public operatorStatic memberEquality
Returns a value indicating whether two instances of Interval are equal.
Public operatorStatic member(Interval to IntervalDouble)
Implicitly converts a specialized interval of real numbers to a generic interval.
Public operatorStatic member(IntervalDouble to Interval)
Implicitly converts a generic interval of real numbers to a specialized interval.
Public operatorStatic memberInequality
Returns a value indicating whether two instances of Interval are not equal.
Public operatorStatic memberMultiply(Double, Interval)
Returns a scaled interval.
Public operatorStatic memberMultiply(Interval, Double)
Returns a scaled interval.
Public operatorStatic memberSubtraction(Double, Interval)
Returns an interval negated and shifted to the right by a specified value.
Public operatorStatic memberSubtraction(Interval, Interval)
Returns the sum of two intervals.
Public operatorStatic memberSubtraction(Interval, Double)
Returns an interval shifted to the left by a specified value.
Top
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 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.
See Also

Reference

Extreme.Mathematics Namespace

Copyright (c) 2004-2021 ExoAnalytics Inc.

Send comments on this topic to support@extremeoptimization.com

Copyright © 2004-2021, Extreme Optimization. All rights reserved.
Extreme Optimization, Complexity made simple, M#, and M Sharp are trademarks of ExoAnalytics Inc.
Microsoft, Visual C#, Visual Basic, Visual Studio, Visual Studio.NET, and the Optimized for Visual Studio logo
are registered trademarks of Microsoft Corporation.