KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfree > data > statistics > StatisticalCategoryDataset


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
45 package org.jfree.data.statistics;
46
47 import org.jfree.data.category.CategoryDataset;
48
49 /**
50  * A category dataset that defines a median and standard deviation value for
51  * each item.
52  *
53  * @author Pascal Collet
54  */

55 public interface StatisticalCategoryDataset extends CategoryDataset {
56
57     /**
58      * Returns the mean value for an item.
59      *
60      * @param row the row index (zero-based).
61      * @param column the column index (zero-based).
62      *
63      * @return The mean value.
64      */

65     public Number JavaDoc getMeanValue(int row, int column);
66
67     /**
68      * Returns the mean value for an item.
69      *
70      * @param rowKey the row key.
71      * @param columnKey the columnKey.
72      *
73      * @return The mean value.
74      */

75     public Number JavaDoc getMeanValue(Comparable JavaDoc rowKey, Comparable JavaDoc columnKey);
76
77     /**
78      * Returns the standard deviation value for an item.
79      *
80      * @param row the row index (zero-based).
81      * @param column the column index (zero-based).
82      *
83      * @return The standard deviation.
84      */

85     public Number JavaDoc getStdDevValue(int row, int column);
86
87     /**
88      * Returns the standard deviation value for an item.
89      *
90      * @param rowKey the row key.
91      * @param columnKey the columnKey.
92      *
93      * @return The standard deviation.
94      */

95     public Number JavaDoc getStdDevValue(Comparable JavaDoc rowKey, Comparable JavaDoc columnKey);
96
97 }
98
99
Popular Tags