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.DataAnalysis
    • Accumulator(T, U) Class
    • Aggregator(T, U) Class
    • Aggregator2(T, U) Class
    • Aggregator2Group Class
    • Aggregator2Group(T) Class
    • AggregatorGroup Class
    • AggregatorGroup(T) Class
    • Aggregators Class
    • BoundaryIntervalBehavior Enumeration
    • CategoricalEncoding Class
    • DataFrame Class
    • DataFrame(R, C) Class
    • DataFrameRow(R, C) Class
    • DateTimeExtensions Class
    • DateTimeUnit Enumeration
    • Direction Enumeration
    • Grouping Class
    • Grouping(TKey) Class
    • Histogram Class
    • Histogram(T) Class
    • IAccumulator(T, U) Interface
    • IAccumulator2(T, U) Interface
    • IAccumulator2(T, U, V) Interface
    • IAggregator Interface
    • IAggregator(T) Interface
    • IAggregator2 Interface
    • IAggregator2(T) Interface
    • IDataFrame Interface
    • IGrouping Interface
    • IIndex Interface
    • Index Class
    • Index(T) Class
    • IntervalIndex(T) Class
    • IPivot Interface
    • JoinIndex Class
    • JoinType Enumeration
    • MissingValueAction Enumeration
    • MissingValueException Class
    • MultipleMissingValueAction Enumeration
    • Parameter(T) Class
    • ParameterVector(T) Class
    • Pivot Class
    • Pivot(R, C) Class
    • RankTiebreaker Enumeration
    • Recurrence Class
    • SortOrder Enumeration
    • SpecialBins Enumeration
    • Subset Class
    • TransformedParameter(T) Class
    • TypePreservingAggregatorGroup Class
    • VectorExtensions Class
  • Subset Class
    • Subset Constructors
    • Properties
    • Methods
    • Operators
    • Fields

Subset Class

Extreme Optimization Numerical Libraries for .NET Professional
Represents a set of indexes that can be used to select elements in a VectorT or rows in a IDataFrame.
Inheritance Hierarchy

SystemObject
  Extreme.DataAnalysisSubset

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

C#
VB
C++
F#
Copy
[SerializableAttribute]
public class Subset : IEnumerable<int>, IEnumerable
<SerializableAttribute>
Public Class Subset
	Implements IEnumerable(Of Integer), IEnumerable
[SerializableAttribute]
public ref class Subset : IEnumerable<int>, 
	IEnumerable
[<SerializableAttribute>]
type Subset =  
    class
        interface IEnumerable<int>
        interface IEnumerable
    end

The Subset type exposes the following members.

Constructors

  NameDescription
Public methodSubset(Int32, Int32)
Constructs a new Subset from an array of indexes.
Public methodSubset(Int32, Int32, Int32)
Constructs a new Subset from a range of indexes.
Top
Properties

  NameDescription
Public propertyEndIndex
Gets the index of the observation past the last visible observation.
Public propertyIsContiguous
Gets whether the subset selects a contiguous range which may wrap around the end of the collection.
Public propertyIsEmpty
Gets whether the subset is empty.
Public propertyIsSlice
Gets whether the subset selects a contiguous range.
Public propertyItem
Gets the position of the observation at the specified index.
Public propertyLength
Gets the number of elements in the subset.
Public propertyOriginalLength
Gets the length of the original data.
Public propertyStartIndex
Gets the index of the first visible observation.
Top
Methods

  NameDescription
Public methodApplySort
Returns a subset that applies the specified sort subset to the current subset.
Public methodStatic memberComplement
Returns a Subset that is the complement of the specified subset.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates over the indexes in the subset.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetReverse
Returns a subset that lists the observations of the current subset in reverse order.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIntersection
Returns a subset representing the intersection of two subsets.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberReverse
Returns a subset that reverses the observations.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberUnion
Returns a subset that represents the union of two subsets.
Top
Operators

  NameDescription
Public operatorStatic memberBitwiseAnd
Returns a subset representing the intersection of two subsets.
Public operatorStatic memberBitwiseOr
Returns a subset that represents the union of two subsets.
Public operatorStatic memberOnesComplement
Returns a Subset that is the complement of the specified subset.
Top
Fields

  NameDescription
Public fieldStatic memberEmpty
An empty subset of any length.
Top
Extension Methods

  NameDescription
Public Extension MethodGroupInt32Overloaded.
Returns a grouping by the unique elements in a sequence.
(Defined by Grouping.)
Public Extension MethodGroupInt32(IEqualityComparerInt32)Overloaded.
Returns a grouping by the unique elements in a sequence using the specified comparer to determine equality.
(Defined by Grouping.)
Public Extension MethodSumInt32Overloaded.
Computes the sum of the sequence of values.
(Defined by ArrayMath.)
Public Extension MethodSumInt32, U(FuncInt32, U)Overloaded.
Computes the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by ArrayMath.)
Top
Remarks

Use the Subset object to select a subset of the elements in a VectorT or the rows in a IDataFrame.

See Also

Reference

Extreme.DataAnalysis 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.