C# Class BEPUutilities2.PermutationMapper

Maps indices to permuted versions of the indices.
Afficher le fichier Open project: RossNordby/scratchpad

Méthodes publiques

Méthode 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 méthode

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.
Résultat int

GetMappedIndex() public méthode

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.
Résultat long

PermutationMapper() public méthode

Constructs a new permutation mapper.
public PermutationMapper ( ) : System
Résultat System