Changeset 3947 in Sophya for trunk/Cosmo/RadioBeam/interfconfigs.cc
- Timestamp:
- Feb 14, 2011, 12:58:29 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/interfconfigs.cc
r3931 r3947 168 168 169 169 return vd; 170 171 } 170 } 171 172 172 /* --Fonction -- */ 173 173 vector<Dish> CreateConfigD(double Ddish, double Eta) … … 243 243 244 244 cout << ">>>CreateConfigD(" << Ddish << "," << Eta << ") ---> NDishes=" << vd.size() << endl; 245 246 245 return vd; 246 } 247 248 /* --Fonction -- */ 249 vector<Dish> CreateConfigNancay12(double Ddish, double Eta) 250 { 251 EnumeratedSequence esx,esy; 252 esx = 0,1,3; 253 esy = 0,1,2,3; 254 255 vector<Dish> vd; 256 int cnt=0; 257 258 for(int ix=0; ix<esx.Size(); ix++) { 259 for(int iy=0; iy<esy.Size(); iy++) { 260 cnt++; 261 vd.push_back(Dish(cnt, ((double)esx.Value(ix))*Ddish,((double)esy.Value(iy))*Ddish,Eta*Ddish)); 262 } 263 } 264 cout << ">>>CreateConfigNancay12(" << Ddish << "," << Eta << ") ---> NDishes=" << vd.size() << endl; 265 return vd; 266 } 267 268 /* --Fonction -- */ 269 vector<Dish> CreateConfigNancay24(double Ddish, double Eta) 270 { 271 EnumeratedSequence esx,esy; 272 esx = 0,1,3,5; 273 esy = 0,1,2,3,4,5; 274 275 vector<Dish> vd; 276 int cnt=0; 277 278 for(int ix=0; ix<esx.Size(); ix++) { 279 for(int iy=0; iy<esy.Size(); iy++) { 280 cnt++; 281 vd.push_back(Dish(cnt, ((double)esx.Value(ix))*Ddish,((double)esy.Value(iy))*Ddish,Eta*Ddish)); 282 } 283 } 284 cout << ">>>CreateConfigNancay24(" << Ddish << "," << Eta << ") ---> NDishes=" << vd.size() << endl; 285 return vd; 286 } 287 288 /* --Fonction -- */ 289 vector<Dish> CreateConfigNancay36(double Ddish, double Eta) 290 { 291 EnumeratedSequence esx,esy; 292 esx = 0,1,2,3,4,5; 293 esy = 0,1,2,3,4,5; 294 295 vector<Dish> vd; 296 int cnt=0; 297 298 for(int ix=0; ix<esx.Size(); ix++) { 299 for(int iy=0; iy<esy.Size(); iy++) { 300 cnt++; 301 vd.push_back(Dish(cnt, ((double)esx.Value(ix))*Ddish,((double)esy.Value(iy))*Ddish,Eta*Ddish)); 302 } 303 } 304 cout << ">>>CreateConfigNancay36(" << Ddish << "," << Eta << ") ---> NDishes=" << vd.size() << endl; 305 return vd; 306 } 307 308 /* --Fonction -- */ 309 vector<Dish> CreateConfigNancay40(double Ddish, double Eta) 310 { 311 EnumeratedSequence esx,esy; 312 esx = 0,1,3,5,7; 313 esy = 0,1,2,3,4,5,6,7; 314 315 vector<Dish> vd; 316 int cnt=0; 317 318 for(int ix=0; ix<esx.Size(); ix++) { 319 for(int iy=0; iy<esy.Size(); iy++) { 320 cnt++; 321 vd.push_back(Dish(cnt, ((double)esx.Value(ix))*Ddish,((double)esy.Value(iy))*Ddish,Eta*Ddish)); 322 } 323 } 324 cout << ">>>CreateConfigNancay40(" << Ddish << "," << Eta << ") ---> NDishes=" << vd.size() << endl; 325 return vd; 326 } 327 328 /* --Fonction -- */ 329 vector<Dish> CreateConfigNancay128(double Ddish, double Eta) 330 { 331 EnumeratedSequence esx,esy; 332 esx = 0,1,3,4,7,10,13,15; 333 esy = 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15; 334 335 vector<Dish> vd; 336 int cnt=0; 337 338 for(int ix=0; ix<esx.Size(); ix++) { 339 for(int iy=0; iy<esy.Size(); iy++) { 340 cnt++; 341 vd.push_back(Dish(cnt, ((double)esx.Value(ix))*Ddish,((double)esy.Value(iy))*Ddish,Eta*Ddish)); 342 } 343 } 344 cout << ">>>CreateConfigNancay128(" << Ddish << "," << Eta << ") ---> NDishes=" << vd.size() << endl; 345 return vd; 247 346 } 248 347
Note:
See TracChangeset
for help on using the changeset viewer.