1. /* ===========================================================
  2. * JFreeChart : a free chart library for the Java(tm) platform
  3. * ===========================================================
  4. *
  5. * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors.
  6. *
  7. * Project Info: http://www.jfree.org/jfreechart/index.html
  8. *
  9. * This library is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU Lesser General Public License as published by
  11. * the Free Software Foundation; either version 2.1 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This library is distributed in the hope that it will be useful, but
  15. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  16. * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  17. * License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public License
  20. * along with this library; if not, write to the Free Software Foundation,
  21. * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  22. *
  23. * [Java is a trademark or registered trademark of Sun Microsystems, Inc.
  24. * in the United States and other countries.]
  25. *
  26. * -------------------------------
  27. * StatisticalCategoryDataset.java
  28. * -------------------------------
  29. * (C) Copyright 2002-2005, by Pascal Collet and Contributors.
  30. *
  31. * Original Author: Pascal Collet;
  32. * Contributor(s): David Gilbert (for Object Refinery Limited);
  33. *
  34. * $Id: StatisticalCategoryDataset.java,v 1.2 2005/02/01 11:59:30 mungady Exp $
  35. *
  36. * Changes
  37. * -------
  38. * 21-Aug-2002 : Version 1, contributed by Pascal Collet (DG);
  39. * 07-Oct-2002 : Fixed errors reported by Checkstyle (DG);
  40. * 24-Oct-2002 : Amendments in line with changes to the CategoryDataset
  41. * interface (DG);
  42. *
  43. */
  44. package org.jfree.data.statistics;
  45. import org.jfree.data.category.CategoryDataset;
  46. /**
  47. * A category dataset that defines a median and standard deviation value for
  48. * each item.
  49. *
  50. * @author Pascal Collet
  51. */
  52. public interface StatisticalCategoryDataset extends CategoryDataset {
  53. /**
  54. * Returns the mean value for an item.
  55. *
  56. * @param row the row index (zero-based).
  57. * @param column the column index (zero-based).
  58. *
  59. * @return The mean value.
  60. */
  61. public Number getMeanValue(int row, int column);
  62. /**
  63. * Returns the mean value for an item.
  64. *
  65. * @param rowKey the row key.
  66. * @param columnKey the columnKey.
  67. *
  68. * @return The mean value.
  69. */
  70. public Number getMeanValue(Comparable rowKey, Comparable columnKey);
  71. /**
  72. * Returns the standard deviation value for an item.
  73. *
  74. * @param row the row index (zero-based).
  75. * @param column the column index (zero-based).
  76. *
  77. * @return The standard deviation.
  78. */
  79. public Number getStdDevValue(int row, int column);
  80. /**
  81. * Returns the standard deviation value for an item.
  82. *
  83. * @param rowKey the row key.
  84. * @param columnKey the columnKey.
  85. *
  86. * @return The standard deviation.
  87. */
  88. public Number getStdDevValue(Comparable rowKey, Comparable columnKey);
  89. }