Home > code > util > parameter_transformation > mappings > encode_wasc_param.m

encode_wasc_param

PURPOSE ^

ENCODE_WASC_PARAM Encodes all parameters of a WASC model into a single vector

SYNOPSIS ^

function [theta, decode] = encode_wasc_param(mu, Sigma_0, M, Q, rho, beta)

DESCRIPTION ^

ENCODE_WASC_PARAM Encodes all parameters of a WASC model into a single vector

  [theta, decode] = ENCODE_WASC_PARAM(mu, Sigma_0, M, Q, rho, beta) encodes
    the parameters mu, Sigma_0, M, Q, rho, beta of a WASC model into a single
    parameter vector theta. The returned function decode can be used together
    with decode_wasc_param to recover the parameters from theta. Since a WASC
    model contains no NON-quadratic orthogonal matrices as parameters, the
    returned function decode does not have an individual state. Hence, any
    returned decode function from encode_wasc_param can be used to recover
    the parameters (as opposed to PCSV models).

 See also DECODE_WASC_PARAM, ENCODE_PARAMETERS, ENCODE_PCSV_PARAM.

 created by Benedikt Rudolph
 DATE: 16-Aug-2012

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [theta, decode] = encode_wasc_param(mu, Sigma_0, M, Q, rho, beta)
0002 %ENCODE_WASC_PARAM Encodes all parameters of a WASC model into a single vector
0003 %
0004 %  [theta, decode] = ENCODE_WASC_PARAM(mu, Sigma_0, M, Q, rho, beta) encodes
0005 %    the parameters mu, Sigma_0, M, Q, rho, beta of a WASC model into a single
0006 %    parameter vector theta. The returned function decode can be used together
0007 %    with decode_wasc_param to recover the parameters from theta. Since a WASC
0008 %    model contains no NON-quadratic orthogonal matrices as parameters, the
0009 %    returned function decode does not have an individual state. Hence, any
0010 %    returned decode function from encode_wasc_param can be used to recover
0011 %    the parameters (as opposed to PCSV models).
0012 %
0013 % See also DECODE_WASC_PARAM, ENCODE_PARAMETERS, ENCODE_PCSV_PARAM.
0014 %
0015 % created by Benedikt Rudolph
0016 % DATE: 16-Aug-2012
0017 
0018   param(1).name = 'mu';
0019   param(end).constraint = 'equal';
0020   param(end).value = mu;
0021 
0022   param(end+1).name = 'Sigma_0';
0023   %param(end).constraint = 'spd';
0024   param(end).constraint = 'equal';
0025   param(end).value = Sigma_0;
0026 
0027   param(end+1).name = 'M';
0028   param(end).constraint = 'None';
0029   param(end).value = M;
0030 
0031   param(end+1).name = 'Q';
0032   param(end).constraint = 'None';
0033   param(end).value = Q;
0034 
0035   param(end+1).name = 'rho';
0036   param(end).constraint = 'None';
0037   param(end).value = rho;
0038 
0039   param(end+1).name = 'beta';
0040   param(end).constraint = 'None';
0041   param(end).value = beta;
0042   
0043   [theta, decode] = encode_parameters(param);
0044 end

Generated on Mon 29-Apr-2013 19:29:13 by m2html © 2005