Ejemplo n.º 1
0
		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) ;
		}
Ejemplo n.º 2
0
		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) ;
		}
Ejemplo n.º 3
0
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()) ;
}
Ejemplo n.º 4
0
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()) ;

}
Ejemplo n.º 5
0
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) ;
}
Ejemplo n.º 6
0
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) ;
}