pysted.utils.datamap_generator
- pysted.utils.datamap_generator(shape, sources, molecules, random_state=None)
Function to generate a datamap with randomly located molecules.
- Parameters:
shape – A tuple representing the shape of the datamap. If only 1 number is passed, a square datamap will be generated.
sources – Number of molecule sources to be randomly placed on the datamap.
molecules – Average number of molecules contained on each source. The actual number of molecules will be determined by poisson sampling.
random_state – Sets the seed of the random number generator.
- Returns:
A datamap containing the randomly placed molecules