A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://accord-framework.net/docs/html/T_Accord_IntRange.htm below:

IntRange Structure

Represents an integer range with minimum and maximum values.

Namespace:  Accord
Assembly:

Accord (in Accord.dll) Version: 3.8.0

Syntax
[SerializableAttribute]
public struct IntRange : IRange<int>, 
	IFormattable, IEquatable<IntRange>, IEnumerable
<SerializableAttribute>
Public Structure IntRange
	Implements IRange(Of Integer), IFormattable, 
	IEquatable(Of IntRange), IEnumerable
Request Example View Source

The IntRange type exposes the following members.

Constructors   Name Description IntRange

Initializes a new instance of the IntRange class.

Top Properties   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.

Top Methods   Name Description Equals(Object)

Determines whether the specified Object, is equal to this instance.

(Overrides ValueTypeEquals(Object).) Equals(IntRange)

Indicates whether the current object is equal to another object of the same type.

GetEnumerator

Returns an enumerator that iterates through a collection.

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(Int32)

Check if the specified value is inside of the range.

IsInside(IntRange)

Check if the specified range is inside of the range.

IsOverlapping

Check if the specified range overlaps with the range.

ToString

Returns a String that represents this instance.

(Overrides ValueTypeToString.) ToString(String, IFormatProvider)

Returns a String that represents this instance.

Top Operators Extension Methods   Name Description HasMethod

Checks whether an object implements a method with the given name.

(Defined by ExtensionMethods.) 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.) 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(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.) SetEqualsInt32

Compares two enumerables for set equality. Two enumerables are set equal if they contain the same elements, but not necessarily in the same order.

(Defined by Matrix.) 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.) Top Remarks

The class represents an integer range with inclusive limits, where both minimum and maximum values of the range are included into it. Mathematical notation of such range is [min, max].

Examples
var range1 = new IntRange(1, 10);


var range2 = new IntRange(5, 15);

check if values is inside of the first range
if (range1.IsInside(7))
{
    
}


if (range1.IsInside(range2))
{
    
}


if (range1.IsOverlapping(range2))
{
    
}
See Also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4