GRALE
Public Member Functions
grale::ProjectedImagesInterface Class Reference

Base class defining the methods that a LensFitnessObject can use to calculate the fitness of a specific lens. More...

#include <projectedimagesinterface.h>

Inheritance diagram for grale::ProjectedImagesInterface:
Inheritance graph
[legend]

List of all members.

Public Member Functions

int getNumberOfSources () const
 Returns the number of sources for which data is stored ('source' is here just an entry in the images data list, so it could also indicate the null space data for a particular object)
int getNumberOfImages (int sourceNumber) const
 Returns the number of images stored for a specific source.
int getNumberOfImagePoints (int sourceNumber) const
 Returns the total number of points of all images corresponding to a source index.
int getNumberOfImagePoints (int sourceNumber, int imageNumber) const
 Returns the number of points stored for a particular image of a particular source.
bool hasOriginalIntensities (int sourceNumber) const
 Returns true if measured intensity information was stored for a specific source index.
bool hasOriginalShearInfo (int sourceNumber) const
 Returns true if measured shear info was stored for the points of a specific source.
const float * getOriginalIntensities (int sourceNumber) const
 Returns the measured intensities stored for all images of a specific source number (expressed in terms of the intensity scale, see getIntensityScale).
const float * getOriginalIntensities (int sourceNumber, int imageNumber) const
 Returns the measured intensities stored for a specific image of a specific source.
const float * getOriginalShearComponent1s (int sourceNumber) const
 Returns the stored gamma1 values for all images of a specific source.
const float * getOriginalShearComponent1s (int sourceNumber, int imageNumber) const
 Returns the stored gamma1 values for a specific image of a specific source.
const float * getOriginalShearComponent2s (int sourceNumber) const
 Returns the stored gamma2 values for all images of a specific source.
const float * getOriginalShearComponent2s (int sourceNumber, int imageNumber) const
 Returns the stored gamma2 values for a specific image of a specific source.
int getOriginalNumberOfTimeDelays (int sourceNumber) const
 Returns the number of time delays that were stored for a specific source index.
void getOriginalTimeDelay (int sourceNumber, int index, int *pImg, int *pPoint, float *pDelay) const
 For a specific source and specific index (from 0 to getOriginalNumberOfTimeDelays - 1), the image index for a time delay value will be stored in pImg, the point index in pPoint and the actual measured time delay in pDelay.
double getIntensityScale () const
 Returns the scale in which stored and calculated image point intensities are expressed.
virtual double getAngularScale () const =0
 Returns the angular scale in which calculated backprojected and original point positions are expressed.
virtual const Vector2D< float > * getBetas (int sourcenum) const =0
 Returns the positions in the source plane for all points of a specific source index.
virtual const Vector2D< float > * getBetas (int sourcenum, int imagenum) const =0
 Returns the positions in the source plane for a specific image of a specific source.
virtual const Vector2D< float > * getThetas (int sourcenum) const =0
 Returns the (stored) positions in the image plane of all points of a specific source.
virtual const Vector2D< float > * getThetas (int sourcenum, int imagenum) const =0
 Returns the (stored) positions in the image plane of a specific image of a specific source.
virtual const float * getDerivativesXX (int sourceNumber) const =0
 Returns alpha_xx values for all points of a specific source.
virtual const float * getDerivativesXX (int sourceNumber, int imageNumber) const =0
 Returns alpha_xx values for the points of a specific image of a specific source.
virtual const float * getDerivativesYY (int sourceNumber) const =0
 Returns alpha_yy values for all points of a specific source.
virtual const float * getDerivativesYY (int sourceNumber, int imageNumber) const =0
 Returns alpha_yy values for the points of a specific image of a specific source.
virtual const float * getDerivativesXY (int sourceNumber) const =0
 Returns alpha_xy values for all points of a specific source.
virtual const float * getDerivativesXY (int sourceNumber, int imageNumber) const =0
 Returns alpha_xy values for the points of a specific image of a specific source.
virtual const float * getInverseMagnifications (int sourcenum) const =0
 Returns the calculated inverse magnification values for all points of a specific source (expressed in termes of the intensity scale)
virtual const float * getInverseMagnifications (int sourcenum, int imagenum) const =0
 Returns the calculated inverse magnification values for a specific image of a specific source (expressed in termes of the intensity scale)
virtual const float * getShearComponents1 (int sourceNumber) const =0
 Returns the calculated gamma1 values for all the points of the specified source.
virtual const float * getShearComponents1 (int sourceNumber, int imageNumber) const =0
 Returns the calculated gamma1 values for a specific image of a specific source.
virtual const float * getShearComponents2 (int sourceNumber) const =0
 Returns the calculated gamma2 values for all the points of the specified source.
virtual const float * getShearComponents2 (int sourceNumber, int imageNumber) const =0
 Returns the calculated gamma2 values for a specific image of a specific source.
virtual const float * getConvergence (int sourceNumber) const =0
 Returns the calculated convergence (kappa) values for all points of the specified source index.
virtual const float * getConvergence (int sourceNumber, int imageNumber) const =0
 Returns the calculated convergence (kappa) values for a specific image of a specific source.
virtual float getTimeDelay (int sourceNumber, int imageNumber, int pointNumber, Vector2D< float > beta) const =0
 For the specified point of an image of a source, calculate the time delay if the backprojected position of that point were beta.

Detailed Description

Base class defining the methods that a LensFitnessObject can use to calculate the fitness of a specific lens.

Two implementations currently exist. The first, and simplest, is the ImagesBackProjector class. It takes a GravitationalLens object (like a lens model created with GRALESHELL using for example 'lens/new/mplummers') and a list of images data and calculates a number of properties (backprojected image points, convergence, shear, ...) and stores others (measured shear for example). It is this implementation that is used by the GRALESHELL command 'imgdata/fitness'.

The second implementation, BackProjectMatrixNew, is somewhat more advanced, but is only meant to be used inside the genetic algorithm. It is more advanced in the sense that it used information provided by the LensFitnessObject to make sure that the calculations are done in an efficient way, only calculating those things that are necessary. This also means that your program will crash if you try to access information that the BackProjectMatrixNew instance believed was not necessary to calculate.


Member Function Documentation

virtual double grale::ProjectedImagesInterface::getAngularScale ( ) const
pure virtual
virtual const Vector2D<float>* grale::ProjectedImagesInterface::getBetas ( int  sourcenum) const
pure virtual
virtual const Vector2D<float>* grale::ProjectedImagesInterface::getBetas ( int  sourcenum,
int  imagenum 
) const
pure virtual
virtual const float* grale::ProjectedImagesInterface::getConvergence ( int  sourceNumber) const
pure virtual
virtual const float* grale::ProjectedImagesInterface::getConvergence ( int  sourceNumber,
int  imageNumber 
) const
pure virtual
virtual const float* grale::ProjectedImagesInterface::getDerivativesXX ( int  sourceNumber) const
pure virtual
virtual const float* grale::ProjectedImagesInterface::getDerivativesXX ( int  sourceNumber,
int  imageNumber 
) const
pure virtual
virtual const float* grale::ProjectedImagesInterface::getDerivativesXY ( int  sourceNumber) const
pure virtual
virtual const float* grale::ProjectedImagesInterface::getDerivativesXY ( int  sourceNumber,
int  imageNumber 
) const
pure virtual
virtual const float* grale::ProjectedImagesInterface::getDerivativesYY ( int  sourceNumber) const
pure virtual
virtual const float* grale::ProjectedImagesInterface::getDerivativesYY ( int  sourceNumber,
int  imageNumber 
) const
pure virtual
double grale::ProjectedImagesInterface::getIntensityScale ( ) const
inline
int grale::ProjectedImagesInterface::getNumberOfImagePoints ( int  sourceNumber) const
inline
int grale::ProjectedImagesInterface::getNumberOfImagePoints ( int  sourceNumber,
int  imageNumber 
) const
inline
int grale::ProjectedImagesInterface::getNumberOfImages ( int  sourceNumber) const
inline
const float* grale::ProjectedImagesInterface::getOriginalIntensities ( int  sourceNumber) const
inline
const float* grale::ProjectedImagesInterface::getOriginalIntensities ( int  sourceNumber,
int  imageNumber 
) const
inline

(expressed in terms of the intensity scale, see getIntensityScale).

int grale::ProjectedImagesInterface::getOriginalNumberOfTimeDelays ( int  sourceNumber) const
inline
const float* grale::ProjectedImagesInterface::getOriginalShearComponent1s ( int  sourceNumber) const
inline
const float* grale::ProjectedImagesInterface::getOriginalShearComponent1s ( int  sourceNumber,
int  imageNumber 
) const
inline
const float* grale::ProjectedImagesInterface::getOriginalShearComponent2s ( int  sourceNumber) const
inline
const float* grale::ProjectedImagesInterface::getOriginalShearComponent2s ( int  sourceNumber,
int  imageNumber 
) const
inline
void grale::ProjectedImagesInterface::getOriginalTimeDelay ( int  sourceNumber,
int  index,
int *  pImg,
int *  pPoint,
float *  pDelay 
) const
inline
virtual const float* grale::ProjectedImagesInterface::getShearComponents1 ( int  sourceNumber) const
pure virtual
virtual const float* grale::ProjectedImagesInterface::getShearComponents1 ( int  sourceNumber,
int  imageNumber 
) const
pure virtual
virtual const float* grale::ProjectedImagesInterface::getShearComponents2 ( int  sourceNumber) const
pure virtual
virtual const float* grale::ProjectedImagesInterface::getShearComponents2 ( int  sourceNumber,
int  imageNumber 
) const
pure virtual
virtual const Vector2D<float>* grale::ProjectedImagesInterface::getThetas ( int  sourcenum) const
pure virtual
virtual const Vector2D<float>* grale::ProjectedImagesInterface::getThetas ( int  sourcenum,
int  imagenum 
) const
pure virtual
virtual float grale::ProjectedImagesInterface::getTimeDelay ( int  sourceNumber,
int  imageNumber,
int  pointNumber,
Vector2D< float >  beta 
) const
pure virtual
bool grale::ProjectedImagesInterface::hasOriginalIntensities ( int  sourceNumber) const
inline
bool grale::ProjectedImagesInterface::hasOriginalShearInfo ( int  sourceNumber) const
inline

The documentation for this class was generated from the following file: