NMath Reference Guide

## Quasi |

The QuasiRandomNumberGenerator type exposes the following members.

Methods

Name | Description | |
---|---|---|

BitArrayToInt | Returns an int whose binary representation is given by a. For example, if a = 1,1,1, this function will return 7. | |

CheckDimensionAndDirectionNumbers | Function where deriving classes can validate a table of direction numbers used in the constructor. | |

CheckDimensionAndPolynomials | Function where deriving classes can validate an array of polynomials used in the constructor. | |

Clone | Constructs a deep copy of this quasi-random number generator. | |

Fill(DoubleMatrix) | Fills the given double precision matrix with M.Cols quasirandom points. The points are the columns of the matrix, hence the number of rows in the given matrix must be equal to the Dimension. The quasirandom numbers will follow a uniform distribution in the hypercube [0,1]^n, where n is equal to Dimension. | |

Fill(FloatMatrix) | Fills the given single precision matrix with M.Cols quasirandom points. The points are the columns of the matrix, hence the number of rows in the given matrix must be equal to the Dimension. The quasirandom numbers will follow a uniform distribution in the hypercube [0,1]^n, where n is equal to Dimension. | |

Fill(IRandomNumberDistributionDouble, DoubleMatrix) | Fills the given double precision matrix with M.Cols quasirandom points. The points are the columns of the matrix, hence the number of rows in the given matrix must be equal to the Dimension. The quasirandom numbers will follow the given distribution. | |

Fill(IRandomNumberDistributionSingle, FloatMatrix) | Fills the given single precision matrix with M.Cols quasirandom points. The points are the columns of the matrix, hence the number of rows in the given matrix must be equal to the Dimension. The quasirandom numbers will follow the given distribution. | |

Fill(DoubleMatrix, Double, Double) | Fills the given double precision matrix with M.Cols quasirandom points. The points are the columns of the matrix, hence the number of rows in the given matrix must be equal to the Dimension. The quasirandom numbers will follow a uniform distribution in the hypercube [a,b]^n, where n is equal to Dimension. | |

Fill(FloatMatrix, Single, Single) | Fills the given single precision matrix with M.Cols quasirandom points. The points are the columns of the matrix, hence the number of rows in the given matrix must be equal to the Dimension. The quasirandom numbers will follow a uniform distribution in the hypercube [a,b]^n, where n is equal to Dimension. | |

FillT(IRandomNumberDistributionT, T) | Fills an array with quasirandom numbers from the specified distribution. The quasirandom numbers, which are tuples of length Dimension are layed out linearly in the array r. If Dimension = n, then the first n-dimensional quasirandom point occupies r[0], r[1],...,r[n-1], the second occupies r[n], r[n+1],...,r[2n-1], and so on. | |

IntToBitArray | Creates a BitArray containing the binary representation of the given nonnegative integer x. | |

LogBase2 | Somewhat efficient algorithm for computing the truncated log base 2 of a nonnegative integer. | |

Next(IRandomNumberDistributionDouble, Int32) | Creates a double precision matrix filled with quasirandom points which follow the given probability distribution. The columns of the matrix are the points, and hence the matrix will contain Dimension rows and numSamples columns. | |

Next(IRandomNumberDistributionSingle, Int32) | Creates a single precision matrix filled with quasirandom points which follow the given probability distribution. The columns of the matrix are the points, and hence the matrix will contain Dimension rows and numSamples columns. | |

NextT(IRandomNumberDistributionT, Int32) | Creates an array filled with quasirandom numbers from the specified distribution. The quasirandom numbers, which are tuples of length Dimension are layed out linearly in the array r. If Dimension = n, then the first n-dimensional quasirandom point occupies r[0], r[1],...,r[n-1], the second occupies r[n], r[n+1],...,r[2n-1], and so on. |

See Also