#Generate Logistic Distribution random numbers on GPU in Matlab
GPU implementation of random('Logistic', mu, sigma, shape)
in Matlab
.
Copyright @ Kai Kang ([email protected]) 2016
##Time profiling with built-in random
function
gpuLogistic
has similar interface with random
, but is suitable for generating large number of random numbers thanks to GPU.
>> comparison
CPU time: 17.82s
GPU time: 3.36s
##Qualitative validation Generating large number of random samples and we can validate that the GPU implementation gets the same distribution with built-in CPU version.
>> validation