Changeset 894 in Sophya for trunk/SophyaLib/TArray/utilarr.cc
- Timestamp:
- Apr 12, 2000, 7:42:33 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/utilarr.cc
r850 r894 8 8 // Classe utilitaires 9 9 10 ////////////////////////////////////////////////////////// 11 //! Constructor 12 /*! 13 \param typ : generator type 14 \param m : mean parameter of the generator (if needed) 15 \param s : sigma parameter of the generator (if needed) 16 */ 10 17 RandomSequence::RandomSequence(int typ, double m, double s) 11 18 { … … 15 22 } 16 23 24 //! Return random sequence values. 17 25 double RandomSequence::Rand() 18 26 { … … 23 31 24 32 33 ////////////////////////////////////////////////////////// 34 //! Constructor 35 /*! 36 \param start : start value 37 \param step : step value 38 \param f : pointer to the sequence function 39 40 See \ref SequenceOperat "operator()" 41 */ 25 42 Sequence::Sequence(double start, double step, Arr_DoubleFunctionOfX f) 26 43 : rseq_(RandomSequence::Gaussian) … … 32 49 } 33 50 51 //! Constructor 52 /*! 53 \param rseq : RandomSequence 54 55 See \ref SequenceOperat "operator()" 56 */ 34 57 Sequence::Sequence(RandomSequence rseq) 35 58 { … … 41 64 } 42 65 66 //! Get the \b k th value 67 /*! 68 \param k : index of the value 69 \anchor SequenceOperat 70 71 If the constructor was done with RandomSequence, return a RandomSequence 72 and \b k doesn't matter. 73 74 If the constructor has a NULL Arr_DoubleFunctionOfX, return start+k*step 75 76 If the constructor has a not NULL Arr_DoubleFunctionOfX, return f(start+k*step) 77 \return the \b k th value 78 */ 43 79 double Sequence::operator () (uint_4 k) 44 80 { … … 51 87 } 52 88 89 ////////////////////////////////////////////////////////// 90 //! Constructor 91 /*! 92 Define a range of indexes 93 \param start : start index 94 \param end : start end 95 \param size : size 96 \param step : step 97 98 \warning If \b end \> \b start, \b size is computed automatically 99 \warning If not \b size is fixed and \b end recomputed 100 */ 53 101 Range::Range(uint_4 start, uint_4 end, uint_4 size, uint_4 step) 54 102 { … … 77 125 78 126 127 ////////////////////////////////////////////////////////// 128 //! Constructor of a (n,n) diagonal matrix with value diag on the diagonal 79 129 IdentityMatrix::IdentityMatrix(double diag, uint_4 n) 80 130 {
Note:
See TracChangeset
for help on using the changeset viewer.