Commit 67a32cb274e4834412d87369bd536b728777570d

Authored by Christoph Deil
1 parent ab61c2c6

Fix typos in docstrings

include/GApplication.hpp
... ... @@ -39,7 +39,7 @@
39 39 /***********************************************************************//**
40 40 * @class GApplication
41 41 *
42   - * @brief GammaLib application interface defintion
  42 + * @brief GammaLib application interface definition
43 43 *
44 44 * This class provides the base class for ftools-like executables based on
45 45 * GammaLib. The ftools-like executables will be implemented as derived
... ...
include/GDerivative.hpp
... ... @@ -221,7 +221,7 @@ const bool& GDerivative::silent(void) const
221 221 *
222 222 * @param[in] function Function.
223 223 *
224   - * Sets the function for which the derivate should be determined.
  224 + * Sets the function for which the derivative should be determined.
225 225 ***************************************************************************/
226 226 inline
227 227 void GDerivative::function(GFunction* function)
... ...
include/GEnergies.hpp
... ... @@ -148,7 +148,7 @@ bool GEnergies::is_empty(void) const
148 148  
149 149  
150 150 /***********************************************************************//**
151   - * @brief Reserves space for energues in container
  151 + * @brief Reserves space for energies in container
152 152 *
153 153 * @param[in] num Number of energies.
154 154 *
... ...
include/GEvent.hpp
... ... @@ -41,7 +41,7 @@
41 41 * @brief Abstract interface for the event classes.
42 42 *
43 43 * This class provides an abstract interface to an event. An event can be
44   - * either a physical event occuring in the instrument (called an event
  44 + * either a physical event occurring in the instrument (called an event
45 45 * atom) or a collection of events with similar properties (called an
46 46 * event bin). While event atoms are used for unbinned analysis, event bins
47 47 * are used for binned analysis. The methods is_atom() and is_bin() inform
... ...
include/GEventAtom.hpp
... ... @@ -40,7 +40,7 @@
40 40 *
41 41 * @brief Abstract interface for the event atom class.
42 42 *
43   - * An event atom is a single event occuring in an instrument. Event atoms
  43 + * An event atom is a single event occurring in an instrument. Event atoms
44 44 * are used for unbinned analysis.
45 45 *
46 46 * Each event has 3 attributes: energy, instrument direction and time.
... ...
include/GException.hpp
... ... @@ -20,7 +20,7 @@
20 20 ***************************************************************************/
21 21 /**
22 22 * @file GException.hpp
23   - * @brief Exception handler interface definiton.
  23 + * @brief Exception handler interface definition.
24 24 * @author Juergen Knoedlseder
25 25 */
26 26  
... ...
include/GFitsImage.hpp
... ... @@ -157,7 +157,7 @@ const int& GFitsImage::naxis(void) const
157 157  
158 158  
159 159 /***********************************************************************//**
160   - * @brief Return number of nul values envountered during loading
  160 + * @brief Return number of nul values encountered during loading
161 161 ***************************************************************************/
162 162 inline
163 163 const int& GFitsImage::anynul(void) const
... ...
include/GFitsTableBitCol.hpp
... ... @@ -39,7 +39,7 @@
39 39 *
40 40 * This class implements a FITS table Bit column. Bits are stored internally
41 41 * in an array of type char and is transferred to the file in junks of
42   - * 8 Bits (using the cfitsio type TBYTE).
  42 + * 8 Bits (using the CFITSIO type TBYTE).
43 43 ***************************************************************************/
44 44 class GFitsTableBitCol : public GFitsTableCol {
45 45  
... ...
include/GFitsTableCol.hpp
... ... @@ -132,7 +132,7 @@ protected:
132 132 //!< This parameter is used to signal if a
133 133 //!< table column corresponds to a FITS file
134 134 //!< column. If it is set to 0 there is no
135   - //!< correspondance.
  135 + //!< correspondence.
136 136 int m_type; //!< Column type
137 137 int m_repeat; //!< Repeat value of column
138 138 int m_width; //!< Width of single column element
... ... @@ -140,7 +140,7 @@ protected:
140 140 //!< m_number = m_repeat / m_width
141 141 int m_length; //!< Length of column (number of rows)
142 142 bool m_variable; //!< Signals if column is variable length
143   - int m_varlen; //!< Maximum number of elements in variable-lgth
  143 + int m_varlen; //!< Maximum number of elements in variable-length
144 144 std::vector<int> m_rowstart; //!< Start index of each row
145 145 mutable int m_size; //!< Size of allocated data area (0 if not loaded)
146 146 int m_anynul; //!< Number of NULLs encountered
... ...
include/GHealpix.hpp
... ... @@ -37,7 +37,7 @@
37 37 /***********************************************************************//**
38 38 * @class GHealpix
39 39 *
40   - * @brief HealPix projection class interface defintion
  40 + * @brief HealPix projection class interface definition
41 41 *
42 42 * The HealPix projection class has been implemented by adapting code from
43 43 * the HealPix library (version 2.1). For more information about HEALPix, see
... ...
include/GIntegral.hpp
... ... @@ -36,7 +36,7 @@
36 36 /***********************************************************************//**
37 37 * @class GIntegral
38 38 *
39   - * @brief GIntegral class interface defintion.
  39 + * @brief GIntegral class interface definition.
40 40 *
41 41 * This class allows to perform integration using various methods. The
42 42 * integrand is implemented by a derived class of GIntegrand.
... ...
include/GLog.hpp
... ... @@ -38,7 +38,7 @@
38 38 /***********************************************************************//**
39 39 * @class GLog
40 40 *
41   - * @brief Information logger interface defintion.
  41 + * @brief Information logger interface definition.
42 42 *
43 43 * This class implements an interface for logging of text messages to the
44 44 * standard output and/or error streams and into an ASCII log file. It
... ...
include/GMatrixSymmetric.hpp
... ... @@ -40,7 +40,7 @@ class GVector;
40 40 /***********************************************************************//**
41 41 * @class GMatrixSymmetric
42 42 *
43   - * @brief Symmetric matrix class interface defintion
  43 + * @brief Symmetric matrix class interface definition
44 44 *
45 45 * This class implements a symmetric matrix. The class stores only a triangle
46 46 * physically, imposing thus strict matrix symmetry.
... ...
include/GObservation.hpp
... ... @@ -47,7 +47,7 @@
47 47 *
48 48 * This class provides an abstract interface for an observation. The
49 49 * observation collects information about the instrument, holds the measured
50   - * events, and provides information about the analysis definiton.
  50 + * events, and provides information about the analysis definition.
51 51 * The method model() returns the probability for an event to be measured
52 52 * with a given instrument direction, a given energy and at a given time,
53 53 * given a source model and an instrument pointing direction.
... ...
include/GObservations.hpp
... ... @@ -80,7 +80,7 @@
80 80 *
81 81 * Based on the list of models, the optimize() method will optimize all
82 82 * model parameters that are marked as free in the list of models. The
83   - * npred() method returns the total number of events that are prediced
  83 + * npred() method returns the total number of events that are predicted
84 84 * by all models after optimization.
85 85 *
86 86 * GObservations also provides an optimizer class that is derived from
... ...
include/GOptimizerLM.hpp
... ... @@ -83,7 +83,7 @@ public:
83 83 int max_boundary_hits(void) const { return m_max_hit; } //!< @brief Return maximum number of boundary hits
84 84 const double& lambda_start(void) const { return m_lambda_start; } //!< @brief Return lambda start value
85 85 const double& lambda_inc(void) const { return m_lambda_inc; } //!< @brief Return lambda increment
86   - const double& lambda_dec(void) const { return m_lambda_dec; } //!< @brief Return lambda derement
  86 + const double& lambda_dec(void) const { return m_lambda_dec; } //!< @brief Return lambda decrement
87 87 const double& lambda(void) const { return m_lambda; } //!< @brief Return lambda value
88 88 const double& eps(void) const { return m_eps; } //!< @brief Return convergence precision
89 89  
... ...
include/GTestSuites.hpp
... ... @@ -20,7 +20,7 @@
20 20 ***************************************************************************/
21 21 /**
22 22 * @file GTestSuites.hpp
23   - * @brief Test suite container class interface defintion
  23 + * @brief Test suite container class interface definition
24 24 * @author Jean-Baptiste Cayrou
25 25 */
26 26  
... ...
include/GTools.hpp
... ... @@ -121,7 +121,7 @@ bool gammalib::is_infinite(const double&amp; x)
121 121 *
122 122 * Signals if the argument @p x is not a number.
123 123 *
124   - * This function is a very simple kluge. It may not work on all systems.
  124 + * This function is a very simple kludge. It may not work on all systems.
125 125 ***************************************************************************/
126 126 inline
127 127 bool gammalib::is_notanumber(const double& x)
... ...
include/GVector.hpp
... ... @@ -40,7 +40,7 @@
40 40 * @brief Vector class
41 41 *
42 42 * This class implement a double precision floating point vector class that
43   - * is intended to be used for numerical computation (it is not ment to
  43 + * is intended to be used for numerical computation (it is not meant to
44 44 * replace the std::vector template class).
45 45 ***************************************************************************/
46 46 class GVector : public GBase {
... ...
include/GXml.hpp
... ... @@ -115,7 +115,7 @@
115 115 * and to load and save the document from a URL. GXml derives from GContainer
116 116 * as it behaves like a container class. It does, however, not contain an
117 117 * explicit list, as the only data member of the class is a single instance
118   - * of GXmlDocument. GXmlDocument contains the hierachical list of all XML
  118 + * of GXmlDocument. GXmlDocument contains the hierarchical list of all XML
119 119 * nodes.
120 120 *
121 121 * To manipulate the child nodes of GXmlDocument, the usual container class
... ...
inst/com/src/GCOMEventCube.cpp
... ... @@ -693,7 +693,7 @@ void GCOMEventCube::set_scatter_directions(void)
693 693 // Throw an error if we have no sky pixels
694 694 if (npix() < 1) {
695 695 throw GCOMException::no_sky(G_SET_SCATTER_DIRECTIONS,
696   - "Every COMPTEL event cube needs a definiton of sky pixels.");
  696 + "Every COMPTEL event cube needs a definition of sky pixels.");
697 697 }
698 698  
699 699 // Clear vectors
... ... @@ -760,7 +760,7 @@ void GCOMEventCube::set_energies(void)
760 760 // Throw an error if GTI is empty
761 761 if (m_ebounds.size() < 1) {
762 762 throw GCOMException::no_ebds(G_SET_ENERGIES, "Every COMPTEL event"
763   - " cube needs a definiton of the energy boundaries.");
  763 + " cube needs a definition of the energy boundaries.");
764 764 }
765 765  
766 766 // Compute the logarithmic mean energy
... ...
inst/com/src/GCOMSupport.cpp
... ... @@ -59,7 +59,7 @@ void com_wcs_mer2car(GSkymap&amp; map)
59 59 // Apply kluge only if the skymap is in Mercator's projection
60 60 if (wcs != NULL && wcs->code() == "MER") {
61 61  
62   - // Extract original WCS definiton
  62 + // Extract original WCS definition
63 63 double crval1 = wcs->crval(0);
64 64 double crval2 = wcs->crval(1);
65 65 double crpix1 = wcs->crpix(0);
... ...
inst/cta/include/GCTAAeffArf.hpp
... ... @@ -45,7 +45,7 @@ class GCTAResponse;
45 45 * @brief CTA ARF effective area class
46 46 *
47 47 * This class implements the CTA effective area response that is defined by
48   - * an auxilliary response function (ARF) file.
  48 + * an auxiliary response function (ARF) file.
49 49 ***************************************************************************/
50 50 class GCTAAeffArf : public GCTAAeff {
51 51  
... ... @@ -159,7 +159,7 @@ const double&amp; GCTAAeffArf::sigma(void) const
159 159 *
160 160 * Sets the theta cut angle which defines the energy independent cut that
161 161 * has been assumed in deriving the ARF values. If @p thetacut os 0 (which
162   - * is the default avlue), not thetacut will be applied.
  162 + * is the default value), not thetacut will be applied.
163 163 ***************************************************************************/
164 164 inline
165 165 void GCTAAeffArf::thetacut(const double& thetacut)
... ...
inst/cta/include/GCTAEventBin.hpp
... ... @@ -38,7 +38,7 @@
38 38 /***********************************************************************//**
39 39 * @class GCTAEventBin
40 40 *
41   - * @brief GCTAEventBin class interface defintion
  41 + * @brief GCTAEventBin class interface definition
42 42 *
43 43 * This class implements a CTA event bin. The event bin is a collection of
44 44 * pointers that points to the relevant information in memory. The class
... ...
inst/cta/include/GCTAResponse.hpp
... ... @@ -246,9 +246,9 @@ const double&amp; GCTAResponse::eps(void) const
246 246  
247 247  
248 248 /***********************************************************************//**
249   - * @brief Return Redestribution Matrix File name
  249 + * @brief Return Redistribution Matrix File name
250 250 *
251   - * @return Redestribution Matrix File name.
  251 + * @return Redistribution Matrix File name.
252 252 ***************************************************************************/
253 253 inline
254 254 const std::string& GCTAResponse::rmffile(void) const
... ...
inst/cta/src/GCTAEventCube.cpp
... ... @@ -651,7 +651,7 @@ void GCTAEventCube::set_directions(void)
651 651 // Throw an error if we have no sky pixels
652 652 if (npix() < 1) {
653 653 throw GCTAException::no_sky(G_SET_DIRECTIONS, "Every CTA event cube"
654   - " needs a definiton of the sky pixels.");
  654 + " needs a definition of the sky pixels.");
655 655 }
656 656  
657 657 // Clear old pixel directions and solid angle
... ... @@ -697,7 +697,7 @@ void GCTAEventCube::set_energies(void)
697 697 // Throw an error if we have no energy bins
698 698 if (ebins() < 1) {
699 699 throw GCTAException::no_ebds(G_SET_ENERGIES, "Every CTA event cube"
700   - " needs a definiton of the energy boundaries.");
  700 + " needs a definition of the energy boundaries.");
701 701 }
702 702  
703 703 // Clear old bin energies and energy widths
... ...
inst/lat/include/GLATObservation.hpp
... ... @@ -130,7 +130,7 @@ const GLATLtCube* GLATObservation::ltcube(void) const
130 130 inline
131 131 std::string GLATObservation::instrument(void) const
132 132 {
133   - // Return instument name
  133 + // Return instrument name
134 134 return ("LAT");
135 135 }
136 136  
... ...
inst/lat/src/GLATEventCube.cpp
... ... @@ -808,7 +808,7 @@ void GLATEventCube::set_directions(void)
808 808 // Throw an error if we have no sky pixels
809 809 if (npix() < 1) {
810 810 throw GLATException::no_sky(G_SET_DIRECTIONS, "Every LAT event cube"
811   - " needs a definiton of the sky pixels.");
  811 + " needs a definition of the sky pixels.");
812 812 }
813 813  
814 814 // Clear old pixel directions and solid angle
... ... @@ -848,7 +848,7 @@ void GLATEventCube::set_energies(void)
848 848 // Throw an error if we have no energy bins
849 849 if (ebins() < 1) {
850 850 throw GLATException::no_ebds(G_SET_ENERGIES, "Every LAT event cube"
851   - " needs a definiton of the energy boundaries.");
  851 + " needs a definition of the energy boundaries.");
852 852 }
853 853  
854 854 // Clear old bin energies and energy widths
... ...
pyext/GApplication.i
... ... @@ -20,7 +20,7 @@
20 20 ***************************************************************************/
21 21 /**
22 22 * @file GApplication.i
23   - * @brief GammaLib application base class Python interface defintion
  23 + * @brief GammaLib application base class Python interface definition
24 24 * @author Juergen Knoedlseder
25 25 */
26 26 %{
... ... @@ -37,7 +37,7 @@
37 37 /***********************************************************************//**
38 38 * @class GApplication
39 39 *
40   - * @brief GammaLib application Python interface defintion.
  40 + * @brief GammaLib application Python interface definition.
41 41 ***************************************************************************/
42 42 class GApplication : public GBase {
43 43 public:
... ...
pyext/GIntegral.i
... ... @@ -33,7 +33,7 @@
33 33 /***********************************************************************//**
34 34 * @class GIntegral
35 35 *
36   - * @brief Integration class Python interface defintion.
  36 + * @brief Integration class Python interface definition.
37 37 *
38 38 * This class allows to perform integration using various methods. The
39 39 * integrand is implemented by a derived class of GIntegrand.
... ...
pyext/GLog.i
... ... @@ -33,7 +33,7 @@
33 33 /***********************************************************************//**
34 34 * @class GLog
35 35 *
36   - * @brief Information logger interface defintion.
  36 + * @brief Information logger interface definition.
37 37 ***************************************************************************/
38 38 class GLog {
39 39 public:
... ...
pyext/GMatrixBase.i
... ... @@ -32,7 +32,7 @@
32 32 /***********************************************************************//**
33 33 * @class GMatrixBase
34 34 *
35   - * @brief Abstract matrix base class interface defintion
  35 + * @brief Abstract matrix base class interface definition
36 36 ***************************************************************************/
37 37 class GMatrixBase : public GBase {
38 38 public:
... ...
pyext/GOptimizerLM.i
... ... @@ -33,7 +33,7 @@
33 33 /***********************************************************************//**
34 34 * @class GOptimizerLM
35 35 *
36   - * @brief GOptimizerLM class SWIG interface defintion.
  36 + * @brief GOptimizerLM class SWIG interface definition.
37 37 ***************************************************************************/
38 38 class GOptimizerLM : public GOptimizer {
39 39 public:
... ...
pyext/GSkyPixel.i
... ... @@ -33,7 +33,7 @@
33 33 /***********************************************************************//**
34 34 * @class GSkyPixel
35 35 *
36   - * @brief GSkyPixel class interface defintion
  36 + * @brief GSkyPixel class interface definition
37 37 ***************************************************************************/
38 38 class GSkyPixel : public GBase {
39 39  
... ...
pyext/GSkymap.i
... ... @@ -103,7 +103,7 @@ static int skymap_tuple(PyObject *input, int *ptr) {
103 103 /***********************************************************************//**
104 104 * @class GSkymap
105 105 *
106   - * @brief GSkymap class interface defintion
  106 + * @brief GSkymap class interface definition
107 107 ***************************************************************************/
108 108 class GSkymap : public GBase {
109 109  
... ...
pyext/GTestCase.i
... ... @@ -32,7 +32,7 @@
32 32 /***********************************************************************//**
33 33 * @class GTestCase
34 34 *
35   - * @brief Test case Python interface defintion
  35 + * @brief Test case Python interface definition
36 36 ***************************************************************************/
37 37 class GTestCase : public GBase {
38 38 public:
... ...
pyext/GTestSuite.i
... ... @@ -142,7 +142,7 @@ public:
142 142 /***********************************************************************//**
143 143 * @class GTestSuite
144 144 *
145   - * @brief Abstract test suite Python interface defintion
  145 + * @brief Abstract test suite Python interface definition
146 146 ***************************************************************************/
147 147 class GTestSuite : public GBase {
148 148 public:
... ... @@ -222,7 +222,7 @@ public:
222 222 /***********************************************************************//**
223 223 * @class GTestSuite
224 224 *
225   - * @brief Test suite Python interface defintion
  225 + * @brief Test suite Python interface definition
226 226 ***************************************************************************/
227 227 class GPythonTestSuite : public GTestSuite {
228 228 public:
... ...
pyext/GTestSuites.i
... ... @@ -20,7 +20,7 @@
20 20 ***************************************************************************/
21 21 /**
22 22 * @file GTestSuites.i
23   - * @brief Test suite container class interface defintion
  23 + * @brief Test suite container class interface definition
24 24 * @author Jean-Baptiste Cayrou
25 25 */
26 26 %{
... ...
src/app/GException_app.cpp
... ... @@ -20,7 +20,7 @@
20 20 ***************************************************************************/
21 21 /**
22 22 * @file GException_app.cpp
23   - * @brief Application exception handler interface definiton
  23 + * @brief Application exception handler interface definition
24 24 * @author Juergen Knoedlseder
25 25 */
26 26  
... ...
src/app/GPars.cpp
... ... @@ -1266,7 +1266,7 @@ void GPars::parse(void)
1266 1266 if (contains(fields[0])) {
1267 1267 throw GException::par_file_syntax_error(G_PARSE,
1268 1268 gammalib::strip_chars(line,"\n"),
1269   - "redefiniton of parameter name \""+fields[0]+"\"");
  1269 + "redefinition of parameter name \""+fields[0]+"\"");
1270 1270 }
1271 1271  
1272 1272 // Add parameter
... ...
src/linalg/GMatrix.cpp
... ... @@ -908,7 +908,7 @@ GMatrix GMatrix::abs(void) const
908 908 *
909 909 * Returns the fill of the matrix. The fill of a matrix is defined as the
910 910 * number non-zero elements devided by the number of total elements. By
911   - * definiton, the fill is comprised in the interval [0,..,1].
  911 + * definition, the fill is comprised in the interval [0,..,1].
912 912 *
913 913 * The fill of a matrix with zero elements will be set to 0.
914 914 ***************************************************************************/
... ...
src/linalg/GMatrixSparse.cpp
... ... @@ -1511,7 +1511,7 @@ GMatrixSparse GMatrixSparse::abs(void) const
1511 1511 * @brief Returns fill of matrix
1512 1512 *
1513 1513 * The fill of a matrix is defined as the number non-zero elements devided
1514   - * by the number of total elements. By definiton, the fill is comprised
  1514 + * by the number of total elements. By definition, the fill is comprised
1515 1515 * in the interval [0,..,1]. The fill of an undefined matrix is defined to
1516 1516 * be 0.
1517 1517 ***************************************************************************/
... ...
src/sky/GHealpix.cpp
... ... @@ -140,7 +140,7 @@ GHealpix::GHealpix(const GFitsHDU&amp; hdu) : GSkyProjection()
140 140 // Initialise class members
141 141 init_members();
142 142  
143   - // Read Healpix defintion from FITS table
  143 + // Read Healpix definition from FITS table
144 144 read(hdu);
145 145  
146 146 // Return
... ... @@ -251,7 +251,7 @@ GHealpix* GHealpix::clone(void) const
251 251  
252 252  
253 253 /***********************************************************************//**
254   - * @brief Read Healpix definiton from FITS header
  254 + * @brief Read Healpix definition from FITS header
255 255 *
256 256 * @param[in] hdu FITS HDU.
257 257 *
... ... @@ -309,7 +309,7 @@ void GHealpix::read(const GFitsHDU&amp; hdu)
309 309  
310 310  
311 311 /***********************************************************************//**
312   - * @brief Write Healpix definiton into FITS HDU
  312 + * @brief Write Healpix definition into FITS HDU
313 313 *
314 314 * @param[in] hdu FITS HDU.
315 315 *
... ...
src/sky/GWcs.cpp
... ... @@ -207,7 +207,7 @@ GWcs&amp; GWcs::operator=(const GWcs&amp; wcs)
207 207 ==========================================================================*/
208 208  
209 209 /***********************************************************************//**
210   - * @brief Read WCS definiton from FITS header.
  210 + * @brief Read WCS definition from FITS header.
211 211 *
212 212 * @param[in] hdu FITS HDU.
213 213 *
... ... @@ -298,7 +298,7 @@ void GWcs::read(const GFitsHDU&amp; hdu)
298 298  
299 299  
300 300 /***********************************************************************//**
301   - * @brief Write WCS definiton into FITS HDU header
  301 + * @brief Write WCS definition into FITS HDU header
302 302 *
303 303 * @param[in] hdu FITS HDU.
304 304 *
... ...
src/template/GClass.hpp
... ... @@ -35,7 +35,7 @@
35 35 /***********************************************************************//**
36 36 * @class GClass
37 37 *
38   - * @brief [brief descriptor] interface defintion
  38 + * @brief [brief descriptor] interface definition
39 39 ***************************************************************************/
40 40 class GClass : public GBase {
41 41  
... ...