close
Warning:
Can't synchronize with repository "(default)" (/var/svn/mms does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Jul 1, 2010, 9:09:41 AM (15 years ago)
- Author:
-
Pedro Gea
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v5
|
v6
|
|
107 | 107 | (ii) y donde se utilizan las transformaciones: |
108 | 108 | {{{ |
| 109 | Text variableName = ...; |
109 | 110 | Real model::CreateBaseExpTermOmega([[ |
110 | 111 | ... |
| 112 | Text _.variableName = variableName ; |
111 | 113 | @MMS.Transformation _.transformation = transformation; |
112 | 114 | // donde: |
… |
… |
|
139 | 141 | }}} |
140 | 142 | |
| 143 | (ii) mientras que en la construcción de los términos explicativos (en MMS_0.6 no se pasa |
| 144 | por la creación de un término base) se ha de construir "en tiempo de definición" una |
| 145 | nueva variable cuando sea necesario, es decir cuando la transformación no sea la identidad: |
141 | 146 | |
| 147 | {{{ |
| 148 | Text variableName = ...; |
| 149 | |
| 150 | @MMS.Variable vc = model::GetDataSet(?)::CreateVariableCalculated([[ |
| 151 | ... |
| 152 | Text _.variableName = variableName<<"_Transformed"; |
| 153 | Set _.variableIdentifiers = [[ variableName ]] |
| 154 | Text _.expression = transformationExpression |
| 155 | // donde: |
| 156 | // transformationExpression = "MMC_ExtendedNormalizeBoxCox(º1, 0, 0, <modelBegin>)" |
| 157 | ... |
| 158 | ]]); |
| 159 | |
| 160 | @MMS.ExpTerm submodel::CreateExpTerm_TransferFunction([[ |
| 161 | ... |
| 162 | NameBlock _.input = [[ |
| 163 | Text _.name = <name>; |
| 164 | Text _.variableIdentifier = variableName<<"_Transformed" |
| 165 | ]]; |
| 166 | ... |
| 167 | ]]) |
| 168 | }}} |
| 169 | |
| 170 | En ausencia de transformación sería simplemente: |
| 171 | {{{ |
| 172 | Text variableName = ...; |
| 173 | @MMS.ExpTerm submodel::CreateExpTerm_TransferFunction([[ |
| 174 | ... |
| 175 | NameBlock _.input = [[ |
| 176 | Text _.name = <name>; |
| 177 | Text _.variableIdentifier = variableName |
| 178 | ]]; |
| 179 | ... |
| 180 | ]]) |
| 181 | }}} |
| 182 | |
| 183 | |