Changeset 568 in Sophya for trunk/SophyaLib/Samba/mlobe.cc


Ignore:
Timestamp:
Nov 10, 1999, 3:17:10 PM (26 years ago)
Author:
ansari
Message:

ajout doc GLM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Samba/mlobe.cc

    r470 r568  
    44#include "timing.h"
    55// #include "nbrandom.h"
    6 
    7 /* --Methode-- */
     6//++
     7// Class        MainLobe
     8//
     9// include      mlobe.h sphericalmap.h unitvector.h math.h
     10//
     11//    Class for computation of main lobe.
     12//
     13//     The lobe values are computed in pixels laying on "nc" slices
     14//     with hexagonal  pavement around theta=0 , phi=0. The lobe is
     15//     gaussian with sigma="sig". The slices are built every
     16//     "dels"*sigma.
     17//
     18//--
     19//++
     20// Titre        Constructor
     21//--
     22/* --Methode-- */
     23//++
    824MainLobe::MainLobe(float sig, float dels, int nc)
     25//
     26//--
    927{
    1028if (sig < 1.e-9)  sig = M_PI/100.;   // Sigma du lobe gaussien (radians)
     
    5876
    5977
    60 /* --Methode-- */
     78//++
     79// Titre        Constructor
     80//--
     81/* --Methode-- */
     82//++
    6183MainLobe::~MainLobe()
     84//
     85//--
    6286{
    6387delete mT0;
     
    7094delete mVal;
    7195}
    72 
    73 /* --Methode-- */
     96//++
     97// Titre        Public Methods
     98//--
     99//++
     100//
     101// inline int      NPix()
     102//    Return the total number of pixels of the lobe           
     103// inline float    Sigma()             
     104// inline double   Integral()           
     105//--
     106/* --Methode-- */
     107//++
    74108void MainLobe::SetDirection(float teta, float phi)
     109//
     110//    orientate  the lobe  toward the direction  (theta, phi)
     111//--
    75112{
    76113int k;
     
    124161
    125162/* --Methode-- */
     163//++
    126164double MainLobe::Value(int kpx, float& teta, float& phi)
     165//
     166//    return the value of the lobe as also the (theta, phi) of the
     167//    pixel "kpx" 
     168//--
    127169{
    128170if ( (kpx < 0) || (kpx >= mNpix) ) { teta = phi = 0.; return(0.); }
     
    133175
    134176/* --Methode-- */
     177//++
    135178double MainLobe::Convol(SphericalMap<double>& sph)
     179//
     180//    return the value of the lobe convolved with the sky (sphere) "sph"
     181//--
    136182{
    137183double ret=0.;
     
    146192}
    147193
    148 /* --Methode-- */
     194//++
     195//
     196// inline void     Print() 
     197//--
     198
     199//++
     200// Titre        Operators
     201//--
     202
     203/* --Methode-- */
     204//++
    149205ostream& operator << (ostream& s, MainLobe const& lob)
     206//
     207//--
    150208{
    151209s << "MainLobe_Info() : Sigma= " << lob.mSigma << " Dels= " << lob.mDels << " NC= "
Note: See TracChangeset for help on using the changeset viewer.