C# Class BEPUutilities2.PermutationMapper

Maps indices to permuted versions of the indices.
ファイルを表示 Open project: RossNordby/scratchpad

Public Methods

Method Description
GetMappedIndex ( int index, int setSize ) : int

Gets a remapped index.

GetMappedIndex ( long index, int setSize ) : long

Gets a remapped index.

PermutationMapper ( ) : System

Constructs a new permutation mapper.

Method Details

GetMappedIndex() public method

Gets a remapped index.
public GetMappedIndex ( int index, int setSize ) : int
index int Original index of an element in the set to be redirected to a shuffled position.
setSize int Size of the set being permuted. Must be smaller than 350000041.
return int

GetMappedIndex() public method

Gets a remapped index.
public GetMappedIndex ( long index, int setSize ) : long
index long Original index of an element in the set to be redirected to a shuffled position.
setSize int Size of the set being permuted. Must be smaller than 350000041.
return long

PermutationMapper() public method

Constructs a new permutation mapper.
public PermutationMapper ( ) : System
return System