Home > UnioviSOM-Oficial > mloc_sim.m

mloc_sim

PURPOSE ^

MLOC_SIM simulates an MLOC object (SOM with local models)

SYNOPSIS ^

function [yest,pr] = mloc_sim(u,mloc,p,y0)

DESCRIPTION ^

 MLOC_SIM simulates an MLOC object (SOM with local models)

   CALLS
         [yest,pr] = mloc_sim(u,mloc,p,y0)

   INPUTS
         u: input data matrix (R x Q)
      mloc: SOM structure with local models
         p: data matrix with exogenous index (dynamic selectors) variables (Rp x Q)
        y0: data matrix with the initial values of y

   OUTPUTS
      yest: matrix with estimated outputs
       bmu: matrix with the sequence of mloc best matching units

   Note:
           The algorithm takes the following initial values (assuming ny>=nu)
           [y0(k-1) y0(k-2) ... y0(k-ny)]
           [ u(k-1)  u(k-2) ...  u(k-nu)]
           
           and returns
           [yest(1) yest(2) ... yest(k-ny),    yest(k-ny+1) ... yest(Q)]
           -------------------------------     ------------------------
              valores no predichos                  predicciones

           That is, the "true predictions" are from element ny+1 of yest, so that: 

           yest(ny+1) is the one step prediction, for initial conditions y0(1:ny), u(1:ny)
           yest(ny+2) is the two-step prediction, for initial conditions y0(1:ny), u(1:ny)

           etc...

   SEE ALSO
      MLOC_LOC, MLOC_SOM, MLOC_PLANOS, MLOC_COMPARA

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 21-Apr-2017 11:56:21 by m2html © 2005