More...
#include <LatticeAddNoise.h>
Add noise from specified distribution to a lattice
Intended use:
Public interface
Review Status
- Date Reviewed:
- yyyy/mm/dd
Prerequisite
Synopsis
This class allows you to add noise from one of many enumerated types to a Lattice. If the Lattice is Complex, then the noise is added to real and imaginary separately.
Example
pars(0) = 0.5;
pars(1) = 0.2;
lan.add(lat);
@ NORMAL
2 parameters, the mean and variance.
Definition at line 79 of file LatticeAddNoise.h.
◆ LatticeAddNoise() [1/3]
casacore::LatticeAddNoise::LatticeAddNoise |
( |
| ) |
|
◆ LatticeAddNoise() [2/3]
Constructor.
An exception will occur if we cannot generate the distribution (e.g. illegal parameters). seed1 and seed2 are used to seed the MLCG object.
◆ LatticeAddNoise() [3/3]
casacore::LatticeAddNoise::LatticeAddNoise |
( |
const LatticeAddNoise & |
other | ) |
|
Copy constructor (copy semantics)
◆ ~LatticeAddNoise()
casacore::LatticeAddNoise::~LatticeAddNoise |
( |
| ) |
|
◆ add() [1/2]
template<class T >
void casacore::LatticeAddNoise::add |
( |
Lattice< T > & |
lattice | ) |
|
Add noise of given type to lattice.
For complex types, the noise is added to real and imaginary separately. Any mask is ignored when adding the noise. I.e. noise is added to masked pixels.
◆ add() [2/2]
template<class T >
void casacore::LatticeAddNoise::add |
( |
MaskedLattice< T > & |
lattice | ) |
|
◆ addNoiseToArray() [1/4]
void casacore::LatticeAddNoise::addNoiseToArray |
( |
Array< Complex > & |
data | ) |
|
|
private |
◆ addNoiseToArray() [2/4]
void casacore::LatticeAddNoise::addNoiseToArray |
( |
Array< DComplex > & |
data | ) |
|
|
private |
◆ addNoiseToArray() [3/4]
void casacore::LatticeAddNoise::addNoiseToArray |
( |
Array< Double > & |
data | ) |
|
|
private |
◆ addNoiseToArray() [4/4]
void casacore::LatticeAddNoise::addNoiseToArray |
( |
Array< Float > & |
data | ) |
|
|
private |
Add noise to array.
For Complex, noise is added to real and imaginary separately.
◆ makeDistribution()
void casacore::LatticeAddNoise::makeDistribution |
( |
| ) |
|
|
private |
◆ operator=()
Assignment (copy semantics)
◆ set()
Set a new distribution.
An exception will occur if we cannot generate the distribution (e.g. illegal parameters).
◆ itsGen
MLCG casacore::LatticeAddNoise::itsGen |
|
private |
◆ itsNoise
Random* casacore::LatticeAddNoise::itsNoise |
|
private |
◆ itsParameters
◆ itsType
The documentation for this class was generated from the following file: