# dia, the diamond-shaped structure, # two functional spatial variables, COUNT and SUM, referencing the same # stochastic variable, and a functional average variable: ENTITY s , "", "tests/model_all_spat/file.txt" { } ENTITY n , "" { } # two-dimensional (spatial = Y) ENTITY dia02 , "" , combines(s, n) { INTEGER depd02 ~ discrete_uniform(0, 1) INTEGER sd02 = SUM(& depd02) INTEGER cd02 = COUNT(& depd02) REAL avg2 = REAL(sd02) / cd02 } # two-dimensional (spatial = X) ENTITY dia03 , "" , combines(n, s) { INTEGER depd03 ~ discrete_uniform(0, 1) INTEGER sd03 = SUM(& depd03) INTEGER cd03 = COUNT(& depd03) REAL avg3 = REAL(sd03) / cd03 }