edu.ucla.stat.SOCR.chart.data
Class Summary

java.lang.Object
  extended by edu.ucla.stat.SOCR.chart.data.Summary

public class Summary
extends java.lang.Object

this class handles the summary calculation for different types of dataset

Author:
jenny

Field Summary
protected  java.lang.String DELIMITERS
           
 
Constructor Summary
Summary(CategoryDataset dataset)
          calculate the statistical summary for the given dataset
Summary(CategoryDataset dataset, java.lang.String[][] vs, int sCount, int cCount)
           
Summary(PieDataset dataset)
          calculate the statistical summary for the given dataset
Summary(XYDataset dataset)
          calculate the statistical summary for the given dataset
Summary(XYZDataset dataset)
          calculate the statistical summary for the given dataset
 
Method Summary
protected  java.lang.Double[] createValueList(java.lang.String in)
           
 int getCategoryCount()
           
 java.lang.String getCategoryName(int catIndex)
           
 java.lang.String getCategorySummary(int catIndex)
          return category summary
 java.lang.String getCellSummary(CategoryDataset dataset, int serieIndex)
          return summary for each table cell of the given serie
 java.lang.String getQQSummary(int serieIndex)
          return both X and Y Summary
 java.lang.String getSerieName(int serieIndex)
           
 int getSeriesCount()
           
 java.lang.String getSeriesSummary(int serieIndex)
          return serie summary this is also for getting Y summary for XYDataset
 java.lang.String getXSummary(int serieIndex)
          return X summary for XYDataset
 java.lang.String getXYZSummary(XYZDataset dataset, int serieIndex)
          return the statistical summary for the given serie
 java.lang.String getYSummary(int serieIndex)
          return Y summary for XYDataset
protected  java.lang.String setInfo(double value)
           
 void setZScale(double in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELIMITERS

protected final java.lang.String DELIMITERS
See Also:
Constant Field Values
Constructor Detail

Summary

public Summary(CategoryDataset dataset)
calculate the statistical summary for the given dataset

Parameters:
dataset -

Summary

public Summary(PieDataset dataset)
calculate the statistical summary for the given dataset

Parameters:
dataset -

Summary

public Summary(XYZDataset dataset)
calculate the statistical summary for the given dataset

Parameters:
dataset -

Summary

public Summary(XYDataset dataset)
calculate the statistical summary for the given dataset

Parameters:
dataset -

Summary

public Summary(CategoryDataset dataset,
               java.lang.String[][] vs,
               int sCount,
               int cCount)
Method Detail

setZScale

public void setZScale(double in)

getXYZSummary

public java.lang.String getXYZSummary(XYZDataset dataset,
                                      int serieIndex)
return the statistical summary for the given serie

Parameters:
dataset -
serieIndex -
Returns:

getCellSummary

public java.lang.String getCellSummary(CategoryDataset dataset,
                                       int serieIndex)
return summary for each table cell of the given serie

Parameters:
dataset -
serieIndex -
Returns:

getSeriesSummary

public java.lang.String getSeriesSummary(int serieIndex)
return serie summary this is also for getting Y summary for XYDataset


getYSummary

public java.lang.String getYSummary(int serieIndex)
return Y summary for XYDataset

Parameters:
serieIndex -
Returns:

getXSummary

public java.lang.String getXSummary(int serieIndex)
return X summary for XYDataset

Parameters:
serieIndex -
Returns:

getQQSummary

public java.lang.String getQQSummary(int serieIndex)
return both X and Y Summary

Parameters:
serieIndex -
Returns:

getCategorySummary

public java.lang.String getCategorySummary(int catIndex)
return category summary

Parameters:
catIndex -
Returns:

getSerieName

public java.lang.String getSerieName(int serieIndex)

getCategoryName

public java.lang.String getCategoryName(int catIndex)

getSeriesCount

public int getSeriesCount()

getCategoryCount

public int getCategoryCount()

setInfo

protected java.lang.String setInfo(double value)

createValueList

protected java.lang.Double[] createValueList(java.lang.String in)