C# Class BitsetsNET.Tests.SetGenerator

Afficher le fichier Open project: BitSetsNet/BitSetsNet Class Usage Examples

Méthodes publiques

Méthode Description
GetContiguousArray ( int start, int end ) : int[]
GetContiguousArrayWithExceptions ( int start, int end, int exceptions ) : int[]

Knocks out a few selected values from a contiguous array to allow meaningful difference testing.This would ordinarily be done by just using GetContiguousArray and flipping the bits off with Set() or Flip(), but those are not currently Implemented in RLE.

GetRandomArray ( int length, int maxNumberOfOnes ) : int[]

Private Methods

Méthode Description
SetGenerator ( ) : System

Method Details

GetContiguousArray() public static méthode

public static GetContiguousArray ( int start, int end ) : int[]
start int
end int
Résultat int[]

GetContiguousArrayWithExceptions() public static méthode

Knocks out a few selected values from a contiguous array to allow meaningful difference testing.This would ordinarily be done by just using GetContiguousArray and flipping the bits off with Set() or Flip(), but those are not currently Implemented in RLE.
public static GetContiguousArrayWithExceptions ( int start, int end, int exceptions ) : int[]
start int
end int
exceptions int
Résultat int[]

GetRandomArray() public static méthode

public static GetRandomArray ( int length, int maxNumberOfOnes ) : int[]
length int
maxNumberOfOnes int
Résultat int[]