|
Chart FX for Java 6.5 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SoftwareFX.ChartFX.Statistical.CalculatorMulti
public final class CalculatorMulti
Provides access to the CalculatorMulti object.
The Chart FX Statistical Extension provides a vast collection of pre-defined calculations for the statistical analysis of data passed to the chart. The supported members of this class allow you to test, analyze and calculate statistical measures for multiple series in a chart. The Calculator
class allows developers to perform calculations on a single series in a chart.
Constructor Summary | |
---|---|
CalculatorMulti()
|
Method Summary | |
---|---|
double |
get(int calculation)
Returns the selected analysis calculation (double) for the CalculatorMulti object. |
int |
getCount()
Returns the total number of series in the CalculatorMulti collection. |
Calculator |
getItem(int series)
Gets a Calculator object for a selected series from the CalculatorMulti object. |
double |
performTest(int test)
Returns the P-Value (double) or Boolean specifying whether the configured test has passed for failed for the chart data. |
boolean |
performTest(int test,
double confidence)
Returns the P-Value (double) or Boolean specifying whether the configured test has passed for failed for the chart data. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CalculatorMulti()
Method Detail |
---|
public double get(int calculation)
Returns the selected analysis calculation (double) for the CalculatorMulti object.
In order to access this method, you must first instaciate a CalculatorMulti object. The Calculators property of the Statistics class when used with no index will return this object:
// Create a CalculatorMulti object
CalculatorMulti calcMulti = statistics1.getCalculators();
This method exposes additional calculations you may apply to all data series in the chart. The Calculator.get(int)
method of the Calculator
class allows you to perform calculations on a single data series in a chart.
The PerformTest method allows users to perform statistical tests on all data series. However, if you wish to perform tests on the single data series in a chart, you may use the Calculator.performTest(int)
method of the Calculator
class.
calculation
- Specifies the analysis to perform.Parameter Values:
The available values for calculation
are:
Value | Description |
---|---|
AnalysisMulti.EQUAL_VARIANCES_Z | Equal Variancez Z. |
AnalysisMulti.POOLED_ESTIMATOR | Pooled Estimator. |
AnalysisMulti.SAME_VARIANCES_T | Same variances T. |
AnalysisMulti.SAME_VARIANCES_DF | Same variances degrees of freedom. |
AnalysisMulti.DIFFERENT_VARIANCES_T | Different variances T. |
AnalysisMulti.DIFFERENT_VARIANCES_DF | Different variances degrees of freedom. |
AnalysisMulti.MATCHED_SAMPLES_T | Matched samples T. |
AnalysisMulti.MATCHED_SAMPLES_DF | Matched samples degrees of freedom. |
AnalysisMulti.VARIACE_RATIO | The ratio of two independent estimates of a common variance. |
AnalysisMulti.DFNUMERATOR | Degrees of freedom numerator. |
AnalysisMulti.DFDENOMINATOR | Degrees of freedom denominator. |
AnalysisMulti.ANOVA_MSTR | ANOVA - mean square due to treatments. |
AnalysisMulti.ANOVA_SSTR | ANOVA - sum of squares due to treatments. |
AnalysisMulti.ANOVA_SSE | ANOVA - sum of squares due to error. |
AnalysisMulti.ANOVA_SST | ANOVA - total sum of squares. |
AnalysisMulti.ANOVA_MSE | ANOVA - mean square due to error. |
AnalysisMulti.ANOVA_DFNUMERATOR | ANOVA - degrees of freedom numerator. |
AnalysisMulti.ANOVA_DFDENOMINATOR | ANOVA - degrees of freedom denominator. |
AnalysisMulti.ANOVA_DFTOTAL | ANOVA - degrees of freedom total. |
AnalysisMulti.ANOVA_F | ANOVA - F test. |
AnalysisMulti.AVERAGE_RANGE | Average range. |
AnalysisMulti.OVERALL_MEAN | Overall mean. |
AnalysisMulti.SAMPLE_SIZE | Sample size. |
AnalysisMulti.OVERALL_MIN | Overall min. |
AnalysisMulti.OVERALL_MAX | Overall max. |
Calculator.get(int)
,
performTest(int)
,
Calculator
public int getCount()
Returns the total number of series in the CalculatorMulti collection.
Use the getItem(int)
index property to select a series to apply a calculation to a selected series.
getItem(int)
public Calculator getItem(int series)
Gets a Calculator object for a selected series from the CalculatorMulti object.
In order to access this method, you must first instaciate a CalculatorMulti object. The Calculators property of the Statistics class when used with no index will return this object:
// Create a CalculatorMulti object
CalculatorMulti calcMulti = statistics1.getCalculators();
You will need to specify the series index which you would like to obtain the Calculator object for within the Item property:
// Find the ZScore of 4.5 in the 1st series
double zs1 = calcMulti.getItem(0).CalculateZScore(4.5);
get(int)
,
performTest(int)
,
Calculator
public double performTest(int test)
Returns the P-Value (double) or Boolean specifying whether the configured test has passed for failed for the chart data.
This method is overload; If you specify only one parameter (the test), then the P-Value will be returned. If two parameters are configured (test and confidence), then a Boolean will be returned indicating whether the test passed or failed.
In order to access this method, you must first instaciate a CalculatorMulti object. The Calculators property of the Statistics class when used with no index will return this object:
// Create a CalculatorMulti object
CalculatorMulti calcMulti = statistics1.getCalculators();
This method allows users to perform statistical tests on all data series. However, if you wish to perform tests on a single series of data in a chart, you may use the Calculator.performTest(int)
method of the Calculator
class.
The get(int)
method exposes additional calculations you may apply to chart data. The Calculator.get(int)
method of the Calculator
class allows you to perform calculations on a single series of data in a chart.
test
- Specifies the test to perform.Parameter Values:
The available values for test
are:
Value | Description |
---|---|
TestMulti.TTEST_MEANS | T Test for Means. |
TestMulti.TTEST_EQUAL_VARIANCES | T Test for Equal Variances. |
TestMulti.TTEST_DIFFERENT_VARIANCES | T Test for Different Variances. |
TestMulti.TTEST_MATCHED | T Test for Matched value. |
TestMulti.FTEST_EQUAL | F Test for Equal to a value. |
TestMulti.FTEST_GREATER | F Test for Greater than a value. |
TestMulti.ANOVA_F | Analysis of Variance F Test. |
get(int)
,
Calculator.performTest(int)
,
Calculator
public boolean performTest(int test, double confidence)
Returns the P-Value (double) or Boolean specifying whether the configured test has passed for failed for the chart data.
This method is overload; If you specify only one parameter (the test), then the P-Value will be returned. If two parameters are configured (test and confidence), then a Boolean will be returned indicating whether the test passed or failed.
In order to access this method, you must first instaciate a CalculatorMulti object. The Calculators property of the Statistics class when used with no index will return this object:
// Create a CalculatorMulti object
CalculatorMulti calcMulti = statistics1.getCalculators();
This method allows users to perform statistical tests on all data series. However, if you wish to perform tests on a single series of data in a chart, you may use the Calculator.performTest(int)
method of the Calculator
class.
The get(int)
method exposes additional calculations you may apply to chart data. The Calculator.get(int)
method of the Calculator
class allows you to perform calculations on a single series of data in a chart.
test
- Specifies the test to perform.confidence
- Confidence level.Parameter Values:
The available values for test
are:
Value | Description |
---|---|
TestMulti.TTEST_MEANS | T Test for Means. |
TestMulti.TTEST_EQUAL_VARIANCES | T Test for Equal Variances. |
TestMulti.TTEST_DIFFERENT_VARIANCES | T Test for Different Variances. |
TestMulti.TTEST_MATCHED | T Test for Matched value. |
TestMulti.FTEST_EQUAL | F Test for Equal to a value. |
TestMulti.FTEST_GREATER | F Test for Greater than a value. |
TestMulti.ANOVA_F | Analysis of Variance F Test. |
get(int)
,
Calculator.performTest(int)
,
Calculator
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |