/** * Constructor * \param[in] x vector * \param[in] Sx covariance * \param[in] t time */ RandomVec(const VecType x, const MatType Sx, const TimeStamp t = TimeStamp() ) : isValid_Sx_L_(false), isValid_Sx_inv_(false), isValid_Sx_det_(false), gen_(NULL) { if ( !dimCheck() ){ exit(-1); } set(x); setCov(Sx); t_ = t; }
/** * Constructor * \param[in] x vector * \param[in] Sx covariance * \param[in] t time */ RandomVec(VecType x, MatType Sx, double t = -1) : isValid_Sx_L_(false), isValid_Sx_inv_(false), isValid_Sx_det_(false), gen_(NULL) { if ( !dimCheck() ){ exit(-1); } set(x); setCov(Sx); t_ = t; }
/** * Set the vector with a covariance matrix, and time * \param[in] x vector to be set * \param[in] Sx covariance to be set * \param[in] t time */ void set( const VecType &x, const MatType &Sx, const TimeStamp &t){ set(x); setCov(Sx); t_ = t; }
/** * Set the vector with a covariance matrix * \param[in] x vector to be set * \param[in] Sx covariance to be set */ void set( const VecType &x, const MatType &Sx){ set(x); setCov(Sx); }
/** * Set the vector with a covariance matrix, and time * \param[in] x vector to be set * \param[in] Sx covariance to be set * \param[in] t time */ void set( VecType &x, MatType &Sx, double t){ set(x); setCov(Sx); t_ = t; }
/** * Set the vector with a covariance matrix * \param[in] x vector to be set * \param[in] Sx covariance to be set */ void set( VecType &x, MatType &Sx){ set(x); setCov(Sx); }