Last change
on this file since 71ac835 was
d85c194,
checked in by Piotr Rozyczko <piotr.rozyczko@…>, 9 years ago
|
Remaining modules refactored
|
-
Property mode set to
100644
|
File size:
740 bytes
|
Rev | Line | |
---|
[aa639ea] | 1 | #include "iq.h" |
---|
| 2 | #include <iostream> |
---|
| 3 | |
---|
| 4 | using namespace std; |
---|
| 5 | |
---|
| 6 | int main(){ |
---|
| 7 | |
---|
| 8 | cout << " Generating a empty iq 2D array with size of 10" << endl; |
---|
| 9 | IQ iq1(10); |
---|
| 10 | |
---|
| 11 | for (int i = 0; i< iq1.iq_data.dim1(); i++) |
---|
| 12 | cout << iq1.iq_data[i][0]<< " " << iq1.iq_data[i][0] <<endl; |
---|
| 13 | |
---|
| 14 | int dim = iq1.iq_data.dim1(); |
---|
| 15 | |
---|
| 16 | cout << "dimension of the iq array is : " << dim << endl; |
---|
| 17 | |
---|
| 18 | iq1.SetQmin(0.001); |
---|
| 19 | iq1.SetQmax(0.4); |
---|
| 20 | iq1.SetContrast(1.0); |
---|
| 21 | iq1.SetVolFrac(1.0); |
---|
| 22 | |
---|
| 23 | cout << iq1.GetQmin() << " " << iq1.GetQmax() << " " << iq1.GetContrast() << " " << iq1.GetVolFrac() << endl; |
---|
| 24 | |
---|
| 25 | cout << "generating another empty iq object through constructor IQ(numI,qmin,qmax)" <<endl; |
---|
| 26 | |
---|
| 27 | IQ iq2(15,0.001,0.4); |
---|
| 28 | |
---|
| 29 | iq2.OutputIQ("out.iq"); |
---|
| 30 | |
---|
| 31 | cout << "pass." << endl; |
---|
| 32 | |
---|
| 33 | return 0; |
---|
| 34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.