BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ParticleDistribution Class Reference

A particle type that is a parametric distribution of IParticle's. More...

+ Inheritance diagram for ParticleDistribution:

Public Member Functions

 ParticleDistribution (const IParticle &prototype, const ParameterDistribution &par_distr)
 
void accept (INodeVisitor *visitor) const final
 
ParticleDistributionclone () const final
 
SafePointerVector< IParticle > generateParticles () const
 Returns list of new particles generated according to a distribution. More...
 
std::vector< const INode * > getChildren () const final
 
std::string mainUnits () const
 
ParameterDistribution parameterDistribution () const
 Returns the distributed parameter data.
 
const IParticle & prototype () const
 Returns the prototype particle, used for generating multiple ones.
 
void rotate (const IRotation &rotation) final
 
void translate (kvector_t translation) final
 

Detailed Description

A particle type that is a parametric distribution of IParticle's.

Member Function Documentation

◆ generateParticles()

SafePointerVector< IParticle > ParticleDistribution::generateParticles ( ) const

Returns list of new particles generated according to a distribution.

Returns particle clones with parameter values drawn from distribution.