| 1 | /* Matrix_and_PointProcess.h |
| 2 | * |
| 3 | * Copyright (C) 1992-2011,2015,2017 Paul Boersma |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This code is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 | * See the GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #include "Matrix.h" |
| 20 | #include "PointProcess.h" |
| 21 | |
| 22 | autoMatrix PointProcess_to_Matrix (PointProcess me); |
| 23 | /* |
| 24 | Function: |
| 25 | create a Matrix from a PointProcess. |
| 26 | Postconditions: |
| 27 | your xmin == 1; |
| 28 | your xmax == my numberOfEvents; |
| 29 | your nx == my numberOfEvents; |
| 30 | your dx == 1; |
| 31 | your x1 == 1; |
| 32 | your ymin ymax ny dy y1 == 1; |
| 33 | for (ievent in 1..my numberOfEvents) your z [1] [ievent] == my event [ievent]; |
| 34 | */ |
| 35 | |
| 36 | autoPointProcess Matrix_to_PointProcess (Matrix me); |
| 37 | /* |
| 38 | Function: |
| 39 | create a PointProcess from a Matrix. |
| 40 | Postconditions: |
| 41 | your maximumNumberOfEvents == my nx; |
| 42 | your numberOfEvents == my nx; |
| 43 | for (ix in 1..my nx) your event [ix] == my z [1] [ix]; |
| 44 | */ |
| 45 | |
| 46 | /* End of file Matrix_and_PointProcess.h */ |