Table_extensions.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. #ifndef _Table_extensions_h_
  2. #define _Table_extensions_h_
  3. /* Table_extensions.h
  4. *
  5. * Copyright (C) 1993-2018 David Weenink
  6. *
  7. * This code is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or (at
  10. * your option) any later version.
  11. *
  12. * This code is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this work. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. /*
  21. djmw 20020411 initial GPL
  22. djmw 20131220 Latest modification.
  23. */
  24. #include "TableOfReal.h"
  25. #include "Collection.h"
  26. #include "Categories.h"
  27. #include "Strings_.h"
  28. #include "SSCP.h"
  29. #include "Table.h"
  30. integer Table_getNumberOfRowsWhere (Table me, conststring32 formula, Interpreter interpreter);
  31. autoINTVEC Table_findRowsMatchingCriterion (Table me, conststring32 formula, Interpreter interpreter);
  32. autoTable Table_create_petersonBarney1952 ();
  33. autoTable Table_create_polsVanNierop1973 ();
  34. autoTable Table_create_weenink1983 ();
  35. autoTable Table_create_esposito2006 ();
  36. autoTable Table_create_ganong1980 ();
  37. double Table_getMedianAbsoluteDeviation (Table me, integer columnNumber);
  38. // Two one-way tests for normal and non-normally distributed data, respectively.
  39. autoTable Table_getOneWayAnalysisOfVarianceF (Table me,
  40. integer column, integer groupColumn, autoTable *means, autoTable *meansDiff, autoTable *meansDiffProbabilities);
  41. autoTable Table_getOneWayKruskalWallis (Table me,
  42. integer column, integer factorColumn, double *p_prob, double *p_kruskalWallis, double *p_df);
  43. autoTable Table_getTwoWayAnalysisOfVarianceF (Table me,
  44. integer column, integer groupColumnA, integer groupColumnB, autoTable *means, autoTable *factorLevelSizes);
  45. void Table_verticalErrorBarsPlotWhere (Table me, Graphics g, integer xcolumn, integer ycolumn, double xmin, double xmax,
  46. double ymin, double ymax, integer yci_min, integer yci_max, double bar_mm, bool garnish, conststring32 formula, Interpreter interpreter);
  47. void Table_horizontalErrorBarsPlotWhere (Table me, Graphics g, integer xcolumn, integer ycolumn, double xmin, double xmax,
  48. double ymin, double ymax, integer xci_min, integer xci_max, double bar_mm, bool garnish, conststring32 formula, Interpreter interpreter);
  49. void Table_normalProbabilityPlot (Table me, Graphics g,
  50. integer column, integer numberOfQuantiles, double numberOfSigmas, int labelSize, conststring32 label, bool garnish);
  51. void Table_quantileQuantilePlot (Table me, Graphics g,
  52. integer xcolumn, integer ycolumn, integer numberOfQuantiles,
  53. double xmin, double xmax, double ymin, double ymax, int labelSize, conststring32 label, bool garnish
  54. );
  55. void Table_quantileQuantilePlot_betweenLevels (Table me, Graphics g,
  56. integer dataColumn, integer factorColumn, conststring32 xlevel, conststring32 ylevel, integer numberOfQuantiles,
  57. double xmin, double xmax, double ymin, double ymax, int labelSize, conststring32 label, bool garnish
  58. );
  59. void Table_boxPlots (Table me, Graphics g,
  60. integer dataColumn, integer factorColumn, double ymin, double ymax, bool garnish);
  61. void Table_boxPlotsWhere (Table me, Graphics g,
  62. conststring32 dataColumns_string, integer factorColumn,
  63. double ymin, double ymax, bool garnish, conststring32 formula, Interpreter interpreter
  64. );
  65. autoTable Table_extractRowsWhere (Table me, conststring32 formula, Interpreter interpreter);
  66. autoTable Table_extractColumnRanges (Table me, conststring32 ranges);
  67. autoTable Table_extractMahalanobisWhere (Table me,
  68. conststring32 columnLabels, conststring32 factorColumn, double numberOfSigmas,
  69. kMelder_number which, conststring32 formula, Interpreter interpreter
  70. );
  71. void Table_distributionPlotWhere (Table me, Graphics g,
  72. integer dataColumn, double minimum, double maximum, integer nBins,
  73. double freqMin, double freqMax, bool garnish, conststring32 formula, Interpreter interpreter
  74. );
  75. void Table_barPlotWhere (Table me, Graphics g,
  76. conststring32 columnLabels, double ymin, double ymax, conststring32 labelColumn,
  77. double xoffsetFraction, double interbarFraction, double interbarsFraction, conststring32 colours,
  78. double angle, bool garnish, conststring32 formula, Interpreter interpreter
  79. );
  80. void Table_lineGraphWhere (Table me, Graphics g,
  81. integer xcolumn, double xmin, double xmax, integer ycolumn, double ymin, double ymax,
  82. conststring32 symbol, double angle, bool garnish, conststring32 formula, Interpreter interpreter
  83. );
  84. void Table_lagPlotWhere (Table me, Graphics g,
  85. integer column, integer lag, double xmin, double xmax,
  86. conststring32 symbol, int labelSize, bool garnish, conststring32 formula, Interpreter interpreter
  87. );
  88. void Table_drawEllipsesWhere (Table me, Graphics g,
  89. integer xcolumn, integer ycolumn, integer labelcolumn, double xmin, double xmax, double ymin, double ymax,
  90. double numberOfSigmas, integer labelSize, bool garnish, conststring32 formula, Interpreter interpreter);
  91. void Table_printAsAnovaTable (Table me);
  92. void Table_printAsMeansTable (Table me);
  93. #endif // _Table_extensions_h_