Changeset 1abcc87 in tol
- Timestamp:
- Oct 26, 2008, 10:45:11 AM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 0691acd
- Parents:
- 8349bbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/dynhlm/_build.node.obs.tol
r8349bbb r1abcc87 20 20 //The last date to be analyzed 21 21 Date last, 22 //Missing label is used as prefix of missing parameters 23 Text missing.label, 22 24 //If there are missing values it will be added prior information about it 23 25 //multiplying the standard deviation of the serie by this factor. … … 38 40 { 39 41 Real aux = AvrS(_.serie); 40 If(IsUnknown(aux), WriteLn("Serie "+_.name+" is fully unknown","W")); 42 If(IsUnknown(aux), WriteLn("Serie "+_.id_node+"::"+_.name+ 43 " is fully unknown","W")); 41 44 aux 42 45 }; 43 46 Real _.stds = StDsS(_.serie); 47 Text _.missing.label = missing.label; 48 Text _.missing.name = _.missing.label+"_"+_.name; 44 49 Real _.missing.sigmaFactor = missing.sigmaFactor; 45 50 Real _.missing.lowerBound = missing.lowerBound; … … 80 85 { 81 86 Text txt = FormatDate(dte,"%cy%Ym%md%dh%hi%is%s"); 82 "MissingBlk::"+_. id_node+"::"+_.name+"::"+txt87 "MissingBlk::"+_.missing.label+"::"+_.name+"::"+txt 83 88 }; 84 89 //Returns the expression of the t-th regression coefficient that could be a … … 126 131 //Time serie data 127 132 Matrix serie, 133 //Missing label is used as prefix of missing parameters 134 Text missing.label, 128 135 //If there are missing values it will be added prior information about it 129 136 //multiplying the standard deviation of the serie by this factor. … … 148 155 }; 149 156 Real _.stds = MatStDs(_.serie); 157 Text _.missing.label = missing.label; 158 Text _.missing.name = _.missing.label+"_"+_.name; 150 159 Real _.missing.sigmaFactor = missing.sigmaFactor; 151 160 Real _.missing.lowerBound = missing.lowerBound; … … 158 167 { 159 168 Text txt = IntText(num); 160 "MissingBlk::"+_. id_node+"::"+_.name+"::"+txt169 "MissingBlk::"+_.missing.label+"::"+_.name+"::"+txt 161 170 }; 162 171 //Returns the expression of the t-th regression coefficient that could be a … … 203 212 //The last date to be analyzed or UnknownDate if it's a vector 204 213 Date last, 214 //Missing label is used as prefix of missing parameters 215 Text missing.label, 205 216 //If there are missing values it will be added prior information about it 206 217 //multiplying the standard deviation of the serie by this factor. … … 221 232 //WriteLn("TRACE [Obs.Data.Info] 1"); 222 233 Obs.Serie.Info( 223 id_node, name, serie, numIniVal, first, last, 234 id_node, name, serie, numIniVal, first, last, missing.label, 224 235 missing.sigmaFactor, missing.lowerBound, missing.upperBound) 225 236 }, … … 228 239 //WriteLn("TRACE [Obs.Data.Info] 2"); 229 240 Obs.Vector.Info( 230 id_node, name, serie, 241 id_node, name, serie, missing.label, 231 242 missing.sigmaFactor, missing.lowerBound, missing.upperBound) 232 243 }, … … 335 346 ( 336 347 id_node+"::Noise", 337 _.transferFunction,348 Copy(_.transferFunction), 338 349 EvalSet(_.omegaParam, Text(Bsr.Param.Info pi) { pi->Name}), 339 _.omega,340 _.delta,350 Copy(_.omega), 351 Copy(_.delta), 341 352 If(!_.p,Rand(0,1,0,0), Tra(SerSetMat([[ser]], fst0, lst0))), 342 353 Tra(SerSetMat([[ser]], fst,lst)) … … 370 381 //A set where each item is the result of calling Obs.TransFun 371 382 Set transFun, 383 //Acumulate input.missing.labels to avoid repetitions 384 Set input.missing.labels, 372 385 //The result of calling BysMcmc::Bsr::Import::Constraints 373 386 NameBlock constraints, … … 416 429 BinGroup("<<", EvalSet(_.input, Set(NameBlock inp) 417 430 { 418 inp::_.serie.info::_.missing 431 Set label = [[inp::_.serie.info::_.missing.name]]; 432 Text PutName(label[1],label[1]); 433 Real idx = FindIndexByName(input.missing.labels,label[1]); 434 //WriteLn("TRACE Obs Missing Label Name : "+label[1]+" -> "<<idx); 435 If(idx, Copy(Empty), 436 { 437 Set Append(input.missing.labels, label); 438 Real SetIndexByName(input.missing.labels); 439 inp::_.serie.info::_.missing 440 }) 419 441 })); 420 442
Note: See TracChangeset
for help on using the changeset viewer.
