Changeset 1404 in Sophya for trunk/SophyaLib/TArray/utilarr.cc
- Timestamp:
- Feb 15, 2001, 6:57:43 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/utilarr.cc
r1156 r1404 16 16 \class SOPHYA::RandomSequence 17 17 \ingroup TArray 18 Class to generate a random sequence ofvalues18 Base class to generate a sequence of random values 19 19 */ 20 20 … … 67 67 \param start : start value 68 68 \param step : step value 69 \param f : pointer to the sequence function 69 \param f : pointer to the sequence function (default = NULL, f(x)=x ) 70 70 71 71 See \ref RegularSequenceOperat "operator()" … … 86 86 \param k : index of the value 87 87 \anchor RegularSequenceOperat 88 89 If the constructor was done with RandomSequence, return a RandomSequence 90 and \b k doesn't matter. 91 92 If the constructor has a NULL Arr_DoubleFunctionOfX, return start+k*step 93 94 If the constructor has a not NULL Arr_DoubleFunctionOfX, return f(start+k*step) 95 \return the \b k th value 88 89 \return f(start+k*step) 90 96 91 */ 97 92 … … 104 99 } 105 100 101 /*! 102 \class SOPHYA::EnumeratedSequence 103 \ingroup TArray 104 Explicitly defined sequence of values. The comma operator has 105 been redefined to let an easy definition of sequences. 106 107 \code 108 // Initializing a sequence 109 EnumeratedSequence es; 110 es = 11, 22, 33, 44, 55, 66; 111 112 for(int k=0; k<8; k++) 113 cout << " k= " << k << " es(k)= " << es(k) << endl; 114 \endcode 115 */ 116 117 EnumeratedSequence::EnumeratedSequence() 118 { 119 } 120 106 121 EnumeratedSequence::~EnumeratedSequence() 107 122 { 108 123 } 109 124 125 //! Return the k th value in the sequence (default = 0) 110 126 MuTyV & EnumeratedSequence::Value (sa_size_t k) const 111 127 {
Note:
See TracChangeset
for help on using the changeset viewer.