C# Class SharpMath.Hammersley

Hammersley sequence generator (ugly) source code from http://people.sc.fsu.edu/~jburkardt/cpp_src/hammersley/hammersley.html
Afficher le fichier Open project: Patapom/GodComplex Class Usage Examples

Méthodes publiques

Méthode Description
BuildSequence ( int _Count, int _Dimensions ) : ].double[

Computes N elements of a leaped Hammersley subsequence

MapSequenceToSphere ( double _Sequence ) : SharpMath.float3[]

Maps the points homogeneously onto the surface of a unit sphere

MapSequenceToSphere ( double _Sequence, double _MaxTheta ) : SharpMath.float3[]

Méthodes protégées

Méthode Description
BuildSequence ( int _Count, int _Dimensions, int _Seed, int _Leap, int _Base, double _Result ) : void

Builds the actual sequence

Prime ( int _PrimeIndex ) : int

Method Details

BuildSequence() public méthode

Computes N elements of a leaped Hammersley subsequence
public BuildSequence ( int _Count, int _Dimensions ) : ].double[
_Count int The amount of points to generate
_Dimensions int The dimensions of the points to generate
Résultat ].double[

BuildSequence() protected méthode

Builds the actual sequence
protected BuildSequence ( int _Count, int _Dimensions, int _Seed, int _Leap, int _Base, double _Result ) : void
_Count int
_Dimensions int
_Seed int
_Leap int
_Base int
_Result double
Résultat void

MapSequenceToSphere() public méthode

Maps the points homogeneously onto the surface of a unit sphere
public MapSequenceToSphere ( double _Sequence ) : SharpMath.float3[]
_Sequence double A 2D sequence previously generated by the BuildSequence() method
Résultat SharpMath.float3[]

MapSequenceToSphere() public méthode

public MapSequenceToSphere ( double _Sequence, double _MaxTheta ) : SharpMath.float3[]
_Sequence double
_MaxTheta double
Résultat SharpMath.float3[]

Prime() protected méthode

protected Prime ( int _PrimeIndex ) : int
_PrimeIndex int
Résultat int