stattest.cc (2665:a124942bacb8) | stattest.cc (2716:b9114064d77a) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 36 unchanged lines hidden (view full) --- 45using namespace Stats; 46 47Tick curTick = 0; 48Tick ticksPerSecond = ULL(2000000000); 49 50Scalar<> s1; 51Scalar<> s2; 52Average<> s3; | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 36 unchanged lines hidden (view full) --- 45using namespace Stats; 46 47Tick curTick = 0; 48Tick ticksPerSecond = ULL(2000000000); 49 50Scalar<> s1; 51Scalar<> s2; 52Average<> s3; |
53Scalar<MainBin> s4; 54Vector<MainBin> s5; 55Distribution<MainBin> s6; 56Vector<MainBin> s7; | 53Scalar<> s4; 54Vector<> s5; 55Distribution<> s6; 56Vector<> s7; |
57AverageVector<> s8; 58StandardDeviation<> s9; 59AverageDeviation<> s10; 60Scalar<> s11; 61Distribution<> s12; 62VectorDistribution<> s13; 63VectorStandardDeviation<> s14; 64VectorAverageDeviation<> s15; 65Vector2d<> s16; 66 67Formula f1; 68Formula f2; 69Formula f3; 70Value f4; 71Value f5; 72Formula f6; 73Formula f7; 74 | 57AverageVector<> s8; 58StandardDeviation<> s9; 59AverageDeviation<> s10; 60Scalar<> s11; 61Distribution<> s12; 62VectorDistribution<> s13; 63VectorStandardDeviation<> s14; 64VectorAverageDeviation<> s15; 65Vector2d<> s16; 66 67Formula f1; 68Formula f2; 69Formula f3; 70Value f4; 71Value f5; 72Formula f6; 73Formula f7; 74 |
75MainBin bin1("bin1"); 76MainBin bin2("bin2"); 77 | |
78ostream *outputStream = &cout; 79 80double 81testfunc() 82{ 83 return 9.8; 84} 85 --- 212 unchanged lines hidden (view full) --- 298 f3 = sum(s5) * s7; 299 f6 += constant(10.0); 300 f6 += s5[3]; 301 f7 = constant(1); 302 303 check(); 304 reset(); 305 | 75ostream *outputStream = &cout; 76 77double 78testfunc() 79{ 80 return 9.8; 81} 82 --- 212 unchanged lines hidden (view full) --- 295 f3 = sum(s5) * s7; 296 f6 += constant(10.0); 297 f6 += s5[3]; 298 f7 = constant(1); 299 300 check(); 301 reset(); 302 |
306 bin1.activate(); 307 | |
308 s16[1][0] = 1; 309 s16[0][1] = 3; 310 s16[0][0] = 2; 311 s16[1][1] = 9; 312 s16[1][1] += 9; 313 s16[1][8] += 8; 314 s16[1][7] += 7; 315 s16[1][6] += 6; --- 174 unchanged lines hidden (view full) --- 490 s6.sample(3); 491 s6.sample(4); 492 s6.sample(5); 493 s6.sample(6); 494 s6.sample(7); 495 s6.sample(8); 496 s6.sample(9); 497 | 303 s16[1][0] = 1; 304 s16[0][1] = 3; 305 s16[0][0] = 2; 306 s16[1][1] = 9; 307 s16[1][1] += 9; 308 s16[1][8] += 8; 309 s16[1][7] += 7; 310 s16[1][6] += 6; --- 174 unchanged lines hidden (view full) --- 485 s6.sample(3); 486 s6.sample(4); 487 s6.sample(5); 488 s6.sample(6); 489 s6.sample(7); 490 s6.sample(8); 491 s6.sample(9); 492 |
498 bin2.activate(); | |
499 s6.sample(10); 500 s6.sample(10); 501 s6.sample(10); 502 s6.sample(10); 503 s6.sample(10); 504 s6.sample(10); 505 s6.sample(10); 506 s6.sample(10); --- 56 unchanged lines hidden --- | 493 s6.sample(10); 494 s6.sample(10); 495 s6.sample(10); 496 s6.sample(10); 497 s6.sample(10); 498 s6.sample(10); 499 s6.sample(10); 500 s6.sample(10); --- 56 unchanged lines hidden --- |