C# Class BitsetsNET.Tests.SetGenerator

ファイルを表示 Open project: BitSetsNet/BitSetsNet Class Usage Examples

Public Methods

Method 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

Method Description
SetGenerator ( ) : System

Method Details

GetContiguousArray() public static method

public static GetContiguousArray ( int start, int end ) : int[]
start int
end int
return int[]

GetContiguousArrayWithExceptions() public static method

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
return int[]

GetRandomArray() public static method

public static GetRandomArray ( int length, int maxNumberOfOnes ) : int[]
length int
maxNumberOfOnes int
return int[]