npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
sineTransformMatrix.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_SINETRANSFORMMATRIX_HH_
2 #define NPSTAT_SINETRANSFORMMATRIX_HH_
3 
4 /*!
5 // \file sineTransformMatrix.hh
6 //
7 // \brief Matrix for the simple sine transform on the [0, 1] interval
8 //
9 // Author: I. Volobouev
10 //
11 // October 2022
12 */
13 
14 #include "npstat/nm/Matrix.hh"
15 
16 namespace npstat {
17  /**
18  // nTerms is the number of sine terms in the transform. The basis
19  // functions are sqrt(2)*sin(k*Pi*x), k = 1, 2, ..., nTerms.
20  //
21  // nDiscrete is the number of points to use for discretizing the [0, 1]
22  // interval. Should normally be substantially larger than
23  // "nTerms".
24  //
25  // The returned matrix will have nTerms rows and nDiscrete columns.
26  */
27  Matrix<double> sineTransformMatrix(unsigned nTerms, unsigned nDiscrete);
28 }
29 
30 #endif // NPSTAT_SINETRANSFORMMATRIX_HH_
Template matrix class.
Definition: AbsArrayProjector.hh:14
Matrix< double > sineTransformMatrix(unsigned nTerms, unsigned nDiscrete)