Class PoissonDistribution
Poisson distribution
Inheritance
Inherited Members
Namespace: ManagedCuda.CudaRand
Assembly: CudaRand.dll
Syntax
public class PoissonDistribution
Constructors
| Improve this Doc View SourcePoissonDistribution(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 SourceDispose()
Dispose
Declaration
public void Dispose()
Dispose(Boolean)
For IDisposable
Declaration
protected virtual void Dispose(bool fDisposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | fDisposing |
Finalize()
For dispose
Declaration
protected void Finalize()
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 |
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 |