Go to the documentation of this file.
29 #ifndef LATTICES_LATTICEADDNOISE_H
30 #define LATTICES_LATTICEADDNOISE_H
34 #include <casacore/casa/aips.h>
35 #include <casacore/casa/Arrays/Vector.h>
36 #include <casacore/casa/BasicMath/Random.h>
43 template <
class T>
class MaskedLattice;
44 template <
class T>
class Lattice;
142 #ifndef CASACORE_NO_AUTO_TEMPLATES
143 #include <casacore/lattices/LatticeMath/LatticeAddNoise2.tcc>
144 #endif //# CASACORE_NO_AUTO_TEMPLATES
void makeDistribution()
Make noise generator.
Vector< Double > itsParameters
A templated, abstract base class for array-like objects with masks.
void set(Random::Types type, const Vector< Double > ¶meters)
Set a new distribution.
~LatticeAddNoise()
Destructor.
void add(Lattice< T > &lattice)
Add noise of given type to lattice.
void addNoiseToArray(Array< Float > &data)
Add noise to array.
Base class for random number distributions.
Types
This enumerator lists all the predefined random number distributions.
LatticeAddNoise(const LatticeAddNoise &other)
Copy constructor (copy semantics)
LatticeAddNoise()
Default constructor.
void add(MaskedLattice< T > &lattice)
this file contains all the compiler specific defines
void addNoiseToArray(Array< DComplex > &data)
Multiplicative linear congruential generator.
LatticeAddNoise(Random::Types type, const Vector< Double > ¶meters, Int seed1=0, Int seed2=1)
Constructor.
A templated, abstract base class for array-like objects.
LatticeAddNoise & operator=(const LatticeAddNoise &other)
Assignment (copy semantics)
void addNoiseToArray(Array< Complex > &data)
Add noise from specified distribution to a lattice.
void addNoiseToArray(Array< Double > &data)