DoubleRange Structure 
Namespace: Accord
[SerializableAttribute] public struct DoubleRange : IRange<double>, IFormattable, IEquatable<DoubleRange>
The DoubleRange type exposes the following members.
Name  Description  

DoubleRange 
Initializes a new instance of the DoubleRange class.

Name  Description  

Length 
Gets the length of the range, defined as (max  min).
 
Max 
Maximum value of the range.
 
Min 
Minimum value of the range.

Name  Description  

Equals(Object) 
Determines whether the specified Object, is equal to this instance.
(Overrides ValueTypeEquals(Object).)  
Equals(DoubleRange) 
Indicates whether the current object is equal to another object of the same type.
 
GetHashCode 
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)  
GetType  Gets the Type of the current instance. (Inherited from Object.)  
Intersection 
Computes the intersection between two ranges.
 
IsInside(Double) 
Check if the specified value is inside of the range.
 
IsInside(DoubleRange) 
Check if the specified range is inside of the range.
 
IsOverlapping 
Check if the specified range overlaps with the range.
 
ToIntRange 
Converts this doubleprecision range into an IntRange.
 
ToString 
Returns a String that represents this instance.
(Overrides ValueTypeToString.)  
ToString(String, IFormatProvider) 
Returns a String that represents this instance.

Name  Description  

Equality 
Determines whether two instances are equal.
 
Inequality 
Determines whether two instances are not equal.

Name  Description  

HasMethod 
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)  
InnerFence 
Creates Tukey's box plot inner fence.
(Defined by Tools.)  
Interval(Int32)  Overloaded.
Creates an interval vector (like NumPy's linspace function).
(Defined by Vector.)  
Interval(Double)  Overloaded.
Obsolete. Please use Vector.Range(range, stepSize) instead.
(Defined by Vector.)  
IsEqual 
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.)  
OuterFence 
Creates Tukey's box plot outer fence.
(Defined by Tools.)  
Range  Overloaded.
Creates a range vector (like NumPy's arange function).
(Defined by Vector.)  
Range(Double)  Overloaded.
Creates a range vector (like NumPy's arange function).
(Defined by Vector.)  
Range(Single)  Overloaded.
Creates a range vector (like NumPy's arange function).
(Defined by Vector.)  
Range(Byte)  Overloaded.
Creates a range vector (like NumPy's arange function).
(Defined by Vector.)  
Range(Int32)  Overloaded.
Creates a range vector (like NumPy's arange function).
(Defined by Vector.)  
Scale 
Converts the value x (which is measured in the scale
'from') to another value measured in the scale 'to'.
(Defined by Tools.)  
To(Type)  Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)  
ToT  Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) 
// create [0.25, 1.5] range var range1 = new DoubleRange(0.25, 1.5); // create [1.00, 2.25] range var range2 = new DoubleRange(1.00, 2.25); // check if values is inside of the first range if (range1.IsInside(0.75)) { // ... } // check if the second range is inside of the first range if (range1.IsInside(range2)) { // ... } // check if two ranges overlap if (range1.IsOverlapping(range2)) { // ... }