|
Chart FX 7 for Java Server | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwarefx.chartfx.server.statistical.Statistics
public class Statistics
Provides access to the Statistics object
This is the core class of the Statistical Extension. The supported members of the Statistics class allow developers to access many other classes implemented in the Statistical Extension. Calculating statistical values, adding studies to a chart and controling the legend are a few of the tasks you will need to access this class to complete.
Constructor Summary | |
---|---|
Statistics()
|
Method Summary | |
---|---|
void |
addDataChangedListener(com.softwarefx.chartfx.server.statistical.Statistics.DataChangedListener value)
Adds a DataChangedListener to the listener list. |
void |
addStudyChangedListener(StudyChangedListener value)
Adds a StudyChangedListener to the listener list. |
CalculatorMulti |
getCalculators()
Gets a CalculatorMulti or Calculator object containing chart values. |
CalculatorMulti |
getCalculatorsRaw()
Gets a CalculatorMulti or Calculator object containing all the original data values passed to the chart. |
Chart |
getChart()
Gets the Chart. |
int |
getCommandID(StatisticsCommandId id)
Used to obtain the CommandID for Statistical commands. |
int |
getConfidence()
Gets the Confidence. |
Locale |
getCulture()
Gets the Culture. |
com.softwarefx.chartfx.server.statistical.Statistics.DataChangedListener[] |
getDataChangedListeners()
Returns an array of all the DataChangedListeners added to this class with addDataChangedListeners(). |
Galleries |
getGallery()
Returns a Galleries object. |
int[] |
getIgnoredSeries()
Gets the IgnoredSeries. |
LegendBox |
getLegendBox()
Sets a value indicating whether to show or hide the statistical legend. |
int |
getSelectedSeries()
Gets the SelectedSeries. |
StudiesCollection |
getStudies()
Gets the Studies Collection object. |
StudyChangedListener[] |
getStudyChangedListeners()
Returns an array of all the StudyChangedListeners added to this class with addStudyChangedListeners(). |
boolean |
isAutoSelectSeries()
Gets the AutoSelectSeries. |
boolean |
isEnableViewState()
Error: Member Statistics.EnableViewState member not found |
boolean |
isFreeze()
Gets the Freeze. |
boolean |
isSampleData()
Gets the SampleData. |
void |
loadState(com.softwarefx.sfxnet.System.IO.Stream stream)
Used to load previous Usl and Lsl values to be saved from a SPC chart at a earlier time. |
void |
removeDataChangedListener(com.softwarefx.chartfx.server.statistical.Statistics.DataChangedListener value)
Removes a DataChangedListener from the listener list. |
void |
removeStudyChangedListener(StudyChangedListener value)
Removes a StudyChangedListener from the listener list. |
void |
saveState(com.softwarefx.sfxnet.System.IO.Stream stream)
Used to save the current Usl and Lsl values to be loaded into an SPC chart at a later time. |
void |
setAutoSelectSeries(boolean value)
Sets a value indicating the Statistical extension to automatically select a series during the highlight event. |
void |
setChart(Chart value)
Sets a value indicating the chart which the Statistical Extension will be included. |
void |
setConfidence(int value)
Sets the default Confidence level for the Statistical Extension. |
void |
setCulture(Locale value)
Sets a CultureInfo object to localize a Statistics object for a specific language and region. |
void |
setEnableViewState(boolean value)
Error: Member Statistics.EnableViewState member not found |
void |
setFreeze(boolean value)
Sets a value specifying whether to stop the calculation of limit values used in SPC charts for evaluations or to continue processing new data values. |
void |
setIgnoredSeries(int[] value)
Sets an array indicating the chart series to ignore in chart calculations. |
void |
setSampleData(boolean value)
Sets a value indicating whether calculations based on Sample or Population data. |
void |
setSelectedSeries(int value)
Sets the selected series for statistical analysis. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Statistics()
Method Detail |
---|
public void addDataChangedListener(com.softwarefx.chartfx.server.statistical.Statistics.DataChangedListener value)
Adds a DataChangedListener to the listener list.
value
- The DataChangedListener to be added.public void addStudyChangedListener(StudyChangedListener value)
Adds a StudyChangedListener to the listener list.
value
- The StudyChangedListener to be added.public CalculatorMulti getCalculators()
Gets a CalculatorMulti or Calculator object containing chart values.
By specifying a series index, devolpers can access a selected Calculators object to analyze a specific series of data. This can be accomplished with the following code:
However, this property may also be used to obtain a CalculatorsMulti object. This object may be used to anlayze the data series included in the chart. This may be done with the next code snippet:
The Calculator
and CalculatorMulti
classes expose methods allowing you to analyse and perform tests on each repective object. The Calculator.get(com.softwarefx.chartfx.server.statistical.Analysis)
and Calculator.performTest(com.softwarefx.chartfx.server.statistical.Test)
methods, shared by both classes, expose a myriad of calculations and tests which you may perform on a selected object.
The getCalculatorsRaw()
property may be used to return a CalculatorMulti or Calculator object containing all the original data values passed to the chart.
#set
,
Calculator.get(com.softwarefx.chartfx.server.statistical.Analysis)
,
Calculator.performTest(com.softwarefx.chartfx.server.statistical.Test)
,
Calculator
,
CalculatorMulti
public CalculatorMulti getCalculatorsRaw()
Gets a CalculatorMulti or Calculator object containing all the original data values passed to the chart.
Several statistical gallery types process the sample data passed to the chart. This is required to correctly display the graphical representation of the data and is standard in may statistical studies.
Using the CalculatorsRaw property, you may be used to return a CalculatorMulti object containing all the original data values passed to the chart (independent of gallery).
By specifying a series index, devolpers can access a selected Calculators object to analyze a specific series of data. This can be accomplished with the following code:
However, this property may also be used to obtain a CalculatorsMulti object. This object may be used to anlayze the data series included in the chart. This may be done with the next code snippet:
The Calculator
and CalculatorMulti
classes expose methods allowing you to analyse and perform tests on each repective object. The Calculator.get(com.softwarefx.chartfx.server.statistical.Analysis)
and Calculator.performTest(com.softwarefx.chartfx.server.statistical.Test)
methods, shared by both classes, expose a myriad of calculations and tests which you may perform on a selected object.
The getCalculators()
property may be used to return a CalculatorMulti or Calculator object containing the processed data values of the chart.
getCalculators()
,
Calculator.get(com.softwarefx.chartfx.server.statistical.Analysis)
,
Calculator.performTest(com.softwarefx.chartfx.server.statistical.Test)
,
CalculatorMulti
,
Calculator
public Chart getChart()
Gets the Chart. For more detail see setChart(com.softwarefx.chartfx.server.Chart)
.
public int getCommandID(StatisticsCommandId id)
Used to obtain the CommandID for Statistical commands.
When the Statistical Extension is added to the Chart, commands may be added to the default Chart FX CommandID list. If you wanted to customize this command, you will need to know the CommandID assigned by the Chart FX CommandID list. This property will return this value. For example, the following code could be used to obtain the CommandID of the Statistical Legend added to the chart:
id
- Statistical CommandID.public int getConfidence()
Gets the Confidence. For more detail see setConfidence(int)
.
public Locale getCulture()
Gets the Culture. For more detail see setCulture(java.util.Locale)
.
public com.softwarefx.chartfx.server.statistical.Statistics.DataChangedListener[] getDataChangedListeners()
Returns an array of all the DataChangedListeners added to this class with addDataChangedListeners().
public Galleries getGallery()
Returns a Galleries object.
Ths property is used to obtain the Galleries object. This object may be assigned to the chart's Gallery object to configure a statistical chart type to the chart.
Access to this object also allows you to set attributes specific to the selected gallery type. For example, the BoxPlot gallery type supports a Notched property. To configure a BoxPlot to be Notched, the following code could be employed:
Please see the Galleries
class for all the supported gallery types accessible using this property.
Galleries.getBoxPlot()
,
Galleries.getFrequencyPolygon()
,
Galleries.getHistogram()
,
Galleries.getOgive()
,
Galleries.getRegression()
,
Galleries
public int[] getIgnoredSeries()
Gets the IgnoredSeries. For more detail see setIgnoredSeries(int[])
.
public LegendBox getLegendBox()
Sets a value indicating whether to show or hide the statistical legend.
The Statistical LegendBox is used to display results of studies and act as a user interface to control different distribution formulas which may be applied to a chart.
The LegendBoxObj property is used to access the LegendBoxBase class members provided by the Chart FX Core. The supported members allow visual attribute customization for the statistical legend.
LegendBox
public int getSelectedSeries()
Gets the SelectedSeries. For more detail see setSelectedSeries(int)
.
public StudiesCollection getStudies()
Gets the Studies Collection object.
StudyStripe ss1 = (StudyStripe) statistics1.Studies.Add(Analysis.LowerQuartile);
StudiesCollection#getItem
,
StudiesCollection.add(com.softwarefx.chartfx.server.statistical.Analysis)
,
StudiesCollection.addTitle(java.lang.String)
,
#setClear
,
StudiesCollection.contains(java.lang.Object)
,
StudiesCollection.copyTo(com.softwarefx.chartfx.server.statistical.Study[], int)
,
StudiesCollection.find(com.softwarefx.chartfx.server.statistical.StudyType, int)
,
StudiesCollection.insert(int, com.softwarefx.chartfx.server.statistical.Study)
,
StudiesCollection.remove(java.lang.Object)
,
StudiesCollection
,
Study
public StudyChangedListener[] getStudyChangedListeners()
Returns an array of all the StudyChangedListeners added to this class with addStudyChangedListeners().
public boolean isAutoSelectSeries()
Gets the AutoSelectSeries. For more detail see setAutoSelectSeries(boolean)
.
public boolean isEnableViewState()
Error: Member Statistics.EnableViewState member not found
ERROR: Doc member not found
public boolean isFreeze()
Gets the Freeze. For more detail see setFreeze(boolean)
.
public boolean isSampleData()
Gets the SampleData. For more detail see setSampleData(boolean)
.
public void loadState(com.softwarefx.sfxnet.System.IO.Stream stream)
Used to load previous Usl and Lsl values to be saved from a SPC chart at a earlier time.
A Statistical Process Control (SPC) or control chart provides basis for deciding whether the variation in the output is due to common causes (in control) or assignable causes (out of control).
Using this method, you can load the upper and lower limits from a previous process. By loading limit values from a previous sample that was determined to be "in control", you can easily determine if the current sample is "in control" or "out of control".
The saveState(com.softwarefx.sfxnet.System.IO.Stream)
method may be used to save a current SPC chart's state.
stream
- Output stream to load the state values.setFreeze(boolean)
,
saveState(com.softwarefx.sfxnet.System.IO.Stream)
public void removeDataChangedListener(com.softwarefx.chartfx.server.statistical.Statistics.DataChangedListener value)
Removes a DataChangedListener from the listener list.
value
- The DataChangedListener to be removed.public void removeStudyChangedListener(StudyChangedListener value)
Removes a StudyChangedListener from the listener list.
value
- The StudyChangedListener to be removed.public void saveState(com.softwarefx.sfxnet.System.IO.Stream stream)
Used to save the current Usl and Lsl values to be loaded into an SPC chart at a later time.
A Statistical Process Control (SPC) or control chart provides basis for deciding whether the variation in the output is due to common causes (in control) or assignable causes (out of control).
Using this method, you can load the upper and lower limits from a previous process. By loading limit values from a previous sample that was determined to be "in control", you can easily determine if the current sample is "in control" or "out of control".
The loadState(com.softwarefx.sfxnet.System.IO.Stream)
method may be used to load a previously saved SPC chart state.
stream
- Output stream to save the state values.setFreeze(boolean)
,
loadState(com.softwarefx.sfxnet.System.IO.Stream)
public void setAutoSelectSeries(boolean value)
Sets a value indicating the Statistical extension to automatically select a series during the highlight event.
The Statistical Legend will display study information specific to the series selected in a highlight event when multiple data series are included in a chart. Chart FX automatically configures the series highlighted as the selected series.
Due to the nature in which some statistical galleries are created, the automatically selected series can display incorrect information in the legend. An example of this is when the BoxPlot gallery is selected.
By configuring this property to false and handling the HightLight event, you can configure the selected series property for the Statistical extension so the correct data is displayed in the legend.
setSelectedSeries(int)
public void setChart(Chart value)
Sets a value indicating the chart which the Statistical Extension will be included.
If more than chart is exists on a form or a page, this property is used to select the chart the extension will be attached.
The setConfidence(int)
property allows you to configure the confidence level for the statstical extension.
setConfidence(int)
public void setConfidence(int value)
Sets the default Confidence level for the Statistical Extension.
The Confidence Level is defined as the degree of confidence associated witha confidence interval; the probablity that the interval contains the true value of the parameter.
The setSelectedSeries(int)
property is used to select a particular series for analysis in the chart.
setSelectedSeries(int)
public void setCulture(Locale value)
Sets a CultureInfo object to localize a Statistics object for a specific language and region.
When setting this property, you may need the Culture Name or Culture Identifier constants for the desired culture. These values are documented in your development environment documentation.
For more information regarding the CultureInfo type, please refer to your development environment documentation.
Statistics
public void setEnableViewState(boolean value)
Error: Member Statistics.EnableViewState member not found
ERROR: Doc member not found
public void setFreeze(boolean value)
Sets a value specifying whether to stop the calculation of limit values used in SPC charts for evaluations or to continue processing new data values.
A Statistical Process Control (SPC) or control chart provides basis for deciding whether the variation in the output is due to common causes (in control) or assignable causes (out of control).
By "freezing" the extension, values used to determine the upper and lower specification limits will not be adjusted. Once a acceptable limit values have been set, new samples observations may be evaluated to determine whether a process is in control.
The loadState(com.softwarefx.sfxnet.System.IO.Stream)
method may be used to load previous Calculator.setUsl(double)
and Calculator.setLsl(double)
values to be saved from a SPC chart at a earlier time.
The saveState(com.softwarefx.sfxnet.System.IO.Stream)
method may be used to save a current SPC chart's state.
Calculator.setUsl(double)
,
Calculator.setLsl(double)
,
Calculator.setSigma(double)
,
loadState(com.softwarefx.sfxnet.System.IO.Stream)
,
saveState(com.softwarefx.sfxnet.System.IO.Stream)
public void setIgnoredSeries(int[] value)
Sets an array indicating the chart series to ignore in chart calculations.
This property allows you to specify a set of series to be completely ignored by the calculators, studies and all the gallery types.
getCalculators()
,
getCalculatorsRaw()
public void setSampleData(boolean value)
Sets a value indicating whether calculations based on Sample or Population data.
When the data analyzed is Population data (all data), slightly different algorithms are used for statistical evaluation. Therefore, if you are not analysing Sample data, this property should be configured to false.
setConfidence(int)
,
setSelectedSeries(int)
public void setSelectedSeries(int value)
Sets the selected series for statistical analysis.
For many studies, it will be required to select a specific series in order to analyze that data specifically. For example, before adding a the UpperQuartile study, here the first series is selected as the SelectedSeries:
getStudies()
,
StudiesCollection.add(com.softwarefx.chartfx.server.statistical.Analysis)
,
Statistics
,
StudiesCollection
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |