void cArch::VectorToRegArchParam(const cDVector& theSrcVect, uint theIndex) { uint mySize = theSrcVect.GetSize() ; if (GetNParam() + theIndex > mySize) throw cError("Wrong size") ; mvConst = theSrcVect[theIndex] ; mvArch.SetThisWithSubVector(theSrcVect, theIndex+1) ; }
void cArch::RegArchParamToVector(cDVector& theDestVect, uint theIndex) { uint mySize = GetNParam() ; if (theDestVect.GetSize() < mySize + theIndex) throw cError("Wrong size") ; theDestVect[theIndex] = mvConst ; mvArch.SetSubVectorWithThis(theDestVect, theIndex+1) ; }
void cTarch::VectorToRegArchParam(const cDVector& theSrcVect, uint theIndex) { uint mySize = theSrcVect.GetSize() ; if (GetNParam() + theIndex > mySize) throw cRegArchError("wrong size") ; mvCste = theSrcVect[theIndex] ; mvArchPos.SetThisWithSubVector(theSrcVect, theIndex+1) ; mvArchNeg.SetThisWithSubVector(theSrcVect, theIndex+1+mvArchPos.GetSize()) ; }
void cTarch::RegArchParamToVector(cDVector& theDestVect, uint theIndex) { uint mySize = GetNParam() ; if (theDestVect.GetSize() < mySize + theIndex) throw cRegArchError("wrong size") ; theDestVect[theIndex] = mvCste ; mvArchPos.SetSubVectorWithThis(theDestVect, theIndex+1) ; mvArchNeg.SetSubVectorWithThis(theDestVect, theIndex+1+mvArchPos.GetSize()) ; }
void cAparch::VectorToRegArchParam(const cDVector& theSrcVect, uint theIndex) {uint mySize = theSrcVect.GetSize(), myIndex = theIndex ; if (GetNParam() + theIndex > mySize) throw cRegArchError("wrong size") ; mvCste = theSrcVect[myIndex++] ; mvDelta = theSrcVect[myIndex++] ; mvArch.SetThisWithSubVector(theSrcVect,myIndex) ; myIndex += mvArch.GetSize() ; mvGamma.SetThisWithSubVector(theSrcVect,myIndex) ; myIndex += mvGamma.GetSize() ; mvGarch.SetThisWithSubVector(theSrcVect,myIndex) ; }
void cAparch::RegArchParamToVector(cDVector& theDestVect, uint theIndex) { uint mySize = GetNParam(), myIndex = theIndex ; if (theDestVect.GetSize() < mySize + theIndex) throw cRegArchError("wrong size") ; theDestVect[myIndex++] = mvCste ; theDestVect[myIndex++] = mvDelta ; mvArch.SetSubVectorWithThis(theDestVect, myIndex) ; myIndex += mvArch.GetSize() ; mvGamma.SetSubVectorWithThis(theDestVect, myIndex) ; myIndex += mvGamma.GetSize() ; mvGarch.SetSubVectorWithThis(theDestVect, myIndex) ; }