npstat::RegularSampler1D Class Reference
Inheritance diagram for npstat::RegularSampler1D:
Detailed DescriptionSimple regular sampler of the unit interval conforming to the AbsRandomGenerator interface. It first splits [0,1] into two equal intervals and returns the coordinate of the boundary (i.e., 0.5). Then it splits the two obtained intervals (the returned points are at 0.25 and 0.75). Then it splits the four intervals, then it splits the eight intervals, and so on. The coordinates of the boundaries are returned from left to right for each level of splitting. Member Function Documentation◆ dim()
Dimensionality of the generated vectors (or points). It is expected that "dim()" will always be 1 for pseudo-random (as opposed to quasi-random) generators. Implements npstat::AbsRandomGenerator. ◆ operator()()
Standard 1-d generator function. It should generate a run-time error for essentially multivariate generators whose dimensionality is larger than 1. Implements npstat::AbsRandomGenerator. ◆ reset()
Reset to the initial state ◆ uniformCount()
This method should be called to determine the number of generated points after which the interval will be uniformly sampled. The "level" can be 0, 1, 2, ..., 62. The documentation for this class was generated from the following file: Generated by 1.9.1 |