Matrix_and_PointProcess.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #include "Matrix.h"
  19. #include "PointProcess.h"
  20. autoMatrix PointProcess_to_Matrix (PointProcess me);
  21. /*
  22. Function:
  23. create a Matrix from a PointProcess.
  24. Postconditions:
  25. your xmin == 1;
  26. your xmax == my numberOfEvents;
  27. your nx == my numberOfEvents;
  28. your dx == 1;
  29. your x1 == 1;
  30. your ymin ymax ny dy y1 == 1;
  31. for (ievent in 1..my numberOfEvents) your z [1] [ievent] == my event [ievent];
  32. */
  33. autoPointProcess Matrix_to_PointProcess (Matrix me);
  34. /*
  35. Function:
  36. create a PointProcess from a Matrix.
  37. Postconditions:
  38. your maximumNumberOfEvents == my nx;
  39. your numberOfEvents == my nx;
  40. for (ix in 1..my nx) your event [ix] == my z [1] [ix];
  41. */
  42. /* End of file Matrix_and_PointProcess.h */