Click or drag to resize

RandomIndexPermutation Class

Provides methods to randomly permute the elements in an IndexCollection instance.
Inheritance Hierarchy
SystemObject
  Novacta.AnalyticsRandomDevice
    Novacta.AnalyticsRandomIndexPermutation

Namespace:  Novacta.Analytics
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public class RandomIndexPermutation : RandomDevice

The RandomIndexPermutation type exposes the following members.

Constructors
  NameDescription
Public methodRandomIndexPermutation
Initializes a new instance of the RandomIndexPermutation class able to permute the specified IndexCollection.
Top
Properties
  NameDescription
Public propertyIndexes
Gets the indexes to permute.
Public propertyRandomNumberGenerator
Gets or sets the basic random generator for this instance.
(Inherited from RandomDevice.)
Top
Methods
  NameDescription
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 methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNext
Returns a random permutation of the Indexes of this instance.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

The current implementation of the RandomIndexPermutation class is based on the Donald E. Knuth's Algorithm P (Shuffling, p. 145)[1] .

Bibliography
[1] Knuth, D.E., The Art of Computer Programming, Volume 2: Seminumerical Algorithms, Addison-Wesley, Reading, MA, third edition. (1997)
See Also