Changeset 85 for bdm/stat/libFN.h
- Timestamp:
- 04/28/08 10:21:21 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/stat/libFN.h
r62 r85 18 18 using namespace itpp; 19 19 20 //! class representing function $f(x) = a$, hererv is empty20 //! class representing function \f$f(x) = a\f$, here \c rv is empty 21 21 class constfn : public fnc 22 22 { … … 32 32 }; 33 33 34 //! Class representing function $f(x) = Ax+B$34 //! Class representing function \f$f(x) = Ax+B\f$ 35 35 class linfn: public fnc 36 36 { 37 //! Identification of $x$37 //! Identification of \f$x\f$ 38 38 RV rv; 39 39 //! Matrix A … … 53 53 54 54 /*! 55 \brief Class representing a differentiable function of two variables $f(x,u)$.55 \brief Class representing a differentiable function of two variables \f$f(x,u)\f$. 56 56 57 57 Function of two variables. … … 73 73 int dimu; 74 74 public: 75 //! Evaluates $f(x0,u0)$ (VS: Do we really need common eval? )75 //! Evaluates \f$f(x0,u0)\f$ (VS: Do we really need common eval? ) 76 76 vec eval ( const vec &cond ) 77 77 { … … 80 80 }; 81 81 82 //! Evaluates $f(x0,u0)$82 //! Evaluates \f$f(x0,u0)\f$ 83 83 virtual vec eval ( const vec &x0, const vec &u0 ) {return zeros ( dimy );}; 84 //! Evaluates \f$A=\frac{d}{dx}f(x,u)|_{x0,u0}\f$ and writes result into \c A . @param full denotes that even unchanged entries are to be rewritten. When, false only the changed elements are computed. @param x0 numeric value of $x$, @param u0 numeric value of $u$ @param A a place where the result will be stored.84 //! Evaluates \f$A=\frac{d}{dx}f(x,u)|_{x0,u0}\f$ and writes result into \c A . @param full denotes that even unchanged entries are to be rewritten. When, false only the changed elements are computed. @param x0 numeric value of \f$x\f$, @param u0 numeric value of \f$u\f$ @param A a place where the result will be stored. 85 85 virtual void dfdx_cond ( const vec &x0, const vec &u0, mat &A , bool full=true ) {}; 86 //! Evaluates \f$A=\frac{d}{du}f(x,u)|_{x0,u0}\f$ and writes result into \c A . @param full denotes that even unchanged entries are to be rewritten. When, false only the changed elements are computed. @param x0 numeric value of $x$, @param u0 numeric value of $u$ @param A a place where the result will be stored.86 //! Evaluates \f$A=\frac{d}{du}f(x,u)|_{x0,u0}\f$ and writes result into \c A . @param full denotes that even unchanged entries are to be rewritten. When, false only the changed elements are computed. @param x0 numeric value of \f$x\f$, @param u0 numeric value of \f$u\f$ @param A a place where the result will be stored. 87 87 virtual void dfdu_cond ( const vec &x0, const vec &u0, mat &A, bool full=true ) {}; 88 88 //!Default constructor (dimy is not set!) … … 94 94 }; 95 95 96 //! Class representing function $f(x,u) = Ax+Bu$96 //! Class representing function \f$f(x,u) = Ax+Bu\f$ 97 97 //TODO can be generalized into multilinear form! 98 98 class bilinfn: public diffbifn