close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1516 closed defect (fixed)

Error en las funciones de Interpolación del StdLib — at Version 3

Reported by: IgnacioGonzalezPuente Owned by: Víctor de Buen Remiro
Priority: highest Milestone: TOL Packages
Component: Kernel Version: 3.1
Severity: blocker Keywords:
Cc:

Description (last modified by Víctor de Buen Remiro)

Hola,

Buscando funciones de interpolación,hemos visto que en StdLib::Interpolate::Scalar había algunas.

Sin embargo, al ir a probarlas nos ha dado error:

ERROR: [1] x_ no es un objeto valido para el tipo Real.

[Call stack]
  [3] Matrix hnd::handler::evalMat (Matrix X)
  [2] Matrix StdLib::Interpolate::Scalar::fillMissAllMat (Matrix X, Matrix Y, Text method, Real order)
  [1] Serie StdLib::Interpolate::Scalar::fillMissIsoSer (Serie y, Text method, Real order)

ERROR: [2] Argumentos erróneos para Real  (Real modo, Real a [, Real b])

[Call stack]
  [3] Matrix hnd::handler::evalMat (Matrix X)
  [2] Matrix StdLib::Interpolate::Scalar::fillMissAllMat (Matrix X, Matrix Y, Text method, Real order)
  [1] Serie StdLib::Interpolate::Scalar::fillMissIsoSer (Serie y, Text method, Real order)

ERROR: [3] Fallo en la función "eval"

[Call stack]
  [3] Matrix hnd::handler::evalMat (Matrix X)
  [2] Matrix StdLib::Interpolate::Scalar::fillMissAllMat (Matrix X, Matrix Y, Text method, Real order)
  [1] Serie StdLib::Interpolate::Scalar::fillMissIsoSer (Serie y, Text method, Real order)

Las series que hemos utilizado son las siguientes:

Serie ser001.t1 = SubSer(CalInd(W, Mensual), y2010, y2010);
Serie ser001.t2 = Log(SubSer(CalInd(W, Mensual), y2010m2, y2010m12));
Serie ser001.t3 = SubSer(Gaussian(1000, 50, Mensual), y2011, y2012);
Serie ser001 = ser001.t1 >> ser001.t2 >> ser001.t3;

Y las funciones que hemos probado son:

Serie StdLib::Interpolate::Scalar::fillMissIsoSer(ser001, "linear", 12);
Serie StdLib::Interpolate::Scalar::fillMissAllSer(ser001, "linear", 12);

Change History (3)

comment:1 Changed 13 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: newclosed

(In [4599]) Fixes #1516

comment:2 Changed 13 years ago by Víctor de Buen Remiro

Ya está arreglado. Hay que actualizar el paquete StdLib y después arrancar una nueva sesión TOL para que tenga efecto pues dicho paquete se carga automáticamente y6 no es posible reemplazarlo en vivo.

comment:3 Changed 13 years ago by Víctor de Buen Remiro

Description: modified (diff)
Note: See TracTickets for help on using tickets.