Show / Hide Table of Contents

    Class PoissonDistribution

    Poisson distribution

    Inheritance
    System.Object
    PoissonDistribution
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: ManagedCuda.CudaRand
    Assembly: CudaRand.dll
    Syntax
    public class PoissonDistribution

    Constructors

    | Improve this Doc View Source

    PoissonDistribution(Double)

    Creates a new poisson distribution.

    Construct histogram array for poisson distribution.

    Construct histogram array for poisson distribution with lambda lambda. For lambda greater than 2000 optimization with normal distribution is used.

    Declaration
    public PoissonDistribution(double lambda)
    Parameters
    Type Name Description
    System.Double lambda

    lambda for poisson distribution

    Methods

    | Improve this Doc View Source

    Dispose()

    Dispose

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Dispose(Boolean)

    For IDisposable

    Declaration
    protected virtual void Dispose(bool fDisposing)
    Parameters
    Type Name Description
    System.Boolean fDisposing
    | Improve this Doc View Source

    Finalize()

    For dispose

    Declaration
    protected void Finalize()
    | Improve this Doc View Source

    Generate(CudaRandDevice, CudaDeviceVariable<UInt32>)

    Generate Poisson-distributed unsigned ints.

    Use generator to generate num unsigned int results into the device memory at outputPtr. The device memory must have been previously allocated and be large enough to hold all the results. Launches are done with the stream set using curandSetStream(), or the null stream if no stream has been set. Results are 32-bit unsigned int point values with poisson distribution based on an associated poisson distribution with lambda lambda.

    Declaration
    public void Generate(CudaRandDevice generator, CudaDeviceVariable<uint> output)
    Parameters
    Type Name Description
    CudaRandDevice generator

    Generator to use

    CudaDeviceVariable<System.UInt32> output

    Pointer to device memory to store CUDA-generated results

    | Improve this Doc View Source

    Generate(CudaRandHost, UInt32[])

    Generate Poisson-distributed unsigned ints.

    Use generator to generate num unsigned int results into the device memory at outputPtr. The device memory must have been previously allocated and be large enough to hold all the results. Launches are done with the stream set using curandSetStream(), or the null stream if no stream has been set. Results are 32-bit unsigned int point values with poisson distribution based on an associated poisson distribution with lambda lambda.

    Declaration
    public void Generate(CudaRandHost generator, uint[] output)
    Parameters
    Type Name Description
    CudaRandHost generator

    Generator to use

    System.UInt32[] output

    Pointer to host memory to store CPU-generated results

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX