get_random_sample#
- ReciprocalLatticeVector.get_random_sample(*args, **kwargs)[source]#
Return a new flattened object from a random sample of a given size.
- Parameters:
size – Number of samples to draw. Cannot be greater than the size of this object. If not given, a single sample is drawn.
replace – See
numpy.random.Generator.choice()
.shuffle – See
numpy.random.Generator.choice()
.
- Returns:
New flattened object of a given size with elements drawn randomly from this object.
- Return type:
new
See also