Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxDim = uint32(6) MaxBit = uint32(30) )
View Source
const (
DefaultBufSize = 1 << 10
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func New ¶
func New(gt GeneratorType, seed uint64) *Generator
func NewTimeSeed ¶
func NewTimeSeed(gt GeneratorType) *Generator
func (*Generator) UniformInt ¶
type GeneratorType ¶
type GeneratorType uint8
const ( Xorshift GeneratorType = iota Golang Tausworthe Default = Tausworthe )
type SobolSequence ¶
type SobolSequence struct {
// contains filtered or unexported fields
}
func (*SobolSequence) Next ¶
func (seq *SobolSequence) Next(dim int) []float64
See Press et al. 2007.
func (*SobolSequence) NextAt ¶
func (seq *SobolSequence) NextAt(target []float64)
NextAt is equivelent to Next, except the Sobol sequence is returned in-place.
Click to show internal directories.
Click to hide internal directories.