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 2, 2010, 2:37:09 PM (15 years ago)
- Author:
-
Pedro Gea
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v10
|
v11
|
|
240 | 240 | }}} |
241 | 241 | |
242 | | |
243 | | |
244 | | |
| 242 | == Jerarquías == |
| 243 | |
| 244 | Las jerarquías en MMS_0.6 (como ecuaciones de parámetros que son) se construyen de |
| 245 | una manera similar a los submodelos. |
| 246 | |
| 247 | Cabe destacar la declaración más explicita del noise o la declaración separada de |
| 248 | sus términos explicativos ({{{MMS::@HierarchyTerm}}}). |
| 249 | |
| 250 | '''Código en MMS_0.5''' |
| 251 | |
| 252 | {{{ |
| 253 | Real model::CreateHierarchy([[ |
| 254 | Text _.name = <nombre>; |
| 255 | Real _.sigma = [<sigmaFija> | ?]; |
| 256 | Real _.sigma0 = [? | <sigmaInicial>]; |
| 257 | Real _.sigmaWeight = [? | <pesoSigmaInicial>]; |
| 258 | Set _.elements = <mElements>; |
| 259 | Set _.hierarchyTerms = [[ |
| 260 | [[ <HierarchyTermName>, <coefficients> ]] |
| 261 | ]]; |
| 262 | Set _.sigmas = <relativeSigmas> |
| 263 | ]]) |
| 264 | }}} |
| 265 | |
| 266 | '''Código en MMS_0.6''' |
| 267 | |
| 268 | {{{ |
| 269 | MMS::@Hierarchy hierarchy = model::CreateHierarchy([[ |
| 270 | Text _.name = <nombre>; |
| 271 | Set _.mElements = <mElements>; |
| 272 | NameBlock _.noise = [[ |
| 273 | Text _.type = "Normal"; |
| 274 | Set _.relativeSigmas = <relativeSigmas>; |
| 275 | Real _.sigma = [<sigmaInicial> | <sigmaFija>]; |
| 276 | Real _.sigmaFixed = [<pesoSigmaInicial | 1] |
| 277 | ]] |
| 278 | ]]); |
| 279 | Anything hierarchy::CreateHierarchyTerm([[ |
| 280 | Text _.name = <HierarchyTermName>; |
| 281 | Set _.coefficients = <coefficients> |
| 282 | ]]); |
| 283 | }}} |
| 284 | |
| 285 | |
| 286 | |