Changeset 894 in Sophya for trunk/SophyaLib/TArray/utilarr.cc


Ignore:
Timestamp:
Apr 12, 2000, 7:42:33 PM (25 years ago)
Author:
ansari
Message:

documentation cmv 12/4/00

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/TArray/utilarr.cc

    r850 r894  
    88// Classe utilitaires
    99
     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 */
    1017RandomSequence::RandomSequence(int typ, double m, double s)
    1118{
     
    1522}
    1623
     24//! Return random sequence values.
    1725double RandomSequence::Rand()
    1826{
     
    2331
    2432
     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 */
    2542Sequence::Sequence(double start, double step, Arr_DoubleFunctionOfX f)
    2643  : rseq_(RandomSequence::Gaussian)
     
    3249}
    3350
     51//! Constructor
     52/*!
     53  \param rseq : RandomSequence
     54
     55  See \ref SequenceOperat "operator()"
     56 */
    3457Sequence::Sequence(RandomSequence rseq)
    3558{
     
    4164}
    4265
     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 */
    4379double Sequence::operator () (uint_4 k)
    4480{
     
    5187}
    5288
     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 */
    53101Range::Range(uint_4 start, uint_4 end, uint_4 size, uint_4 step)
    54102{
     
    77125
    78126
     127//////////////////////////////////////////////////////////
     128//! Constructor of a (n,n) diagonal matrix with value diag on the diagonal
    79129IdentityMatrix::IdentityMatrix(double diag, uint_4 n)
    80130{
Note: See TracChangeset for help on using the changeset viewer.