C# Class SharpMath.Hammersley

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

Public Methods

Method 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[]

Protected Methods

Method 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 method

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
return ].double[

BuildSequence() protected method

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
return void

MapSequenceToSphere() public method

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
return SharpMath.float3[]

MapSequenceToSphere() public method

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

Prime() protected method

protected Prime ( int _PrimeIndex ) : int
_PrimeIndex int
return int