|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.quinncurtis.chart2djava.ChartObj
com.quinncurtis.spcchartjava.SPCCalculatedValueRecord
public class SPCCalculatedValueRecord
The record class for a calculated SPC statistic. It holds the calculated value type, value, description and historical data.
Field Summary | |
---|---|
static int |
SPC_CUSTOM_CALC
Constant value for a custom SPC calculation (unused). |
static int |
SPC_CUSUM_CMINUS_CALC
Constant value for a CUSUM - SPC calculation. |
static int |
SPC_CUSUM_CPLUS_CALC
Constant value for a CUSUM + SPC calculation. |
static int |
SPC_EWMA_CALC
Constant value for a EWMA stead state SPC calculation. |
static int |
SPC_FRACTION_DEFECTIVE_PARTS_CALC
Constant value for a percent defective parts SPC calculation. |
static int |
SPC_FRACTION_DEFECTIVE_PARTS_VSS_CALC
Constant value for a percent defective parts SPC calculation. |
static int |
SPC_FRACTION_DEFECTS_CALC
Constant value for a fraction defects SPC calculation. |
static int |
SPC_FRACTION_DEFECTS_VSS_CALC
Constant value for a fraction defects SPC calculation. |
static int |
SPC_INDIVIDUAL_ABS_RANGE_CALC
Constant value for a ABS individual range SPC calculation. |
static int |
SPC_INDIVIDUAL_COPY_VALUE
Constant value for INDIVIDUAL RANGE . |
static int |
SPC_INDIVIDUAL_RANGE_CALC
Constant value for a individual range SPC calculation. |
static int |
SPC_MA_CALC
Constant value for a EWMA stead state SPC calculation. |
static int |
SPC_MAX_CALC
Constant value for a maximum SPC calculation. |
static int |
SPC_MEAN_CALC
Constant value for a mean SPC calculation. |
static int |
SPC_MEAN_N_MINUS_1_CALC
Constant value for a mean SPC calculation using N-1, rather than N. |
static int |
SPC_MEAN_VSS_CALC
Constant value for a mean variable sample size SPC calculation. |
static int |
SPC_MEDIAN_CALC
Constant value for a median SPC calculation. |
static int |
SPC_MIN_CALC
Constant value for a minimum SPC calculation. |
static int |
SPC_PERCENT_DEFECTIVE_PARTS_CALC
Constant value for a percent defective parts calculation. |
static int |
SPC_PERCENT_DEFECTIVE_PARTS_VSS_CALC
Constant value for a percent defective parts SPC calculation. |
static int |
SPC_PERCENT_DEFECTS_CALC
Constant value for a percent defects SPC calculation. |
static int |
SPC_RANGE_CALC
Constant value for a range SPC calculation. |
static int |
SPC_STD_DEVIATION_CALC
Constant value for a standar deviation SPC calculation. |
static int |
SPC_STD_DEVIATION_VSS_CALC
Constant value for a standard deviation variable sample size SPC calculation. |
static int |
SPC_SUM_CALC
Constant value for a sum SPC calculation. |
static int |
SPC_TOTAL_DEFECTIVE_PARTS_CALC
Constant value for a total defective parts SPC calculation. |
static int |
SPC_TOTAL_DEFECTS_CALC
Constant value for a total defects SPC calculation. |
static int |
SPC_VARIANCE_CALC
Constant value for a variance SPC calculation. |
Constructor Summary | |
---|---|
SPCCalculatedValueRecord()
The default SPCCalculatedValueRecord constructor. |
|
SPCCalculatedValueRecord(int calctype,
java.lang.String description)
Constructor initializes a calculated value record. |
Method Summary | |
---|---|
double |
calculateHistoryStatistic(DoubleArray v,
int calctype)
Calculate the calculated value value based on the data in the source array and the specified calculation type. |
static double |
calculateHistoryStatisticStatic(DoubleArray v,
int calctype)
Calculate the calculated value value based on the data in the source array and the specified calculation type. |
java.lang.Object |
clone()
Returns an object that is a clone of this object. |
void |
Copy(SPCCalculatedValueRecord source)
Copies the source object. |
double |
getCalculatedValue()
Get the current calculation value for this record. |
double[] |
getCalculatedValues()
Get the reference to the calculatedValue array. |
double |
getCalculatedValueStatistic(int stattype)
Returns the calculated value value based on the data in the calculated historical data array, calculatedValues. |
int |
getCalculationType()
Get the calculation type for this calculation value record. |
double |
getEWMA_Lambda()
Get the lambda value for EWMA calculations. |
double |
getEWMA_StartingValue()
Get the lambda value for EWMA calculations. |
int |
getMA_w()
Get the lambda value for EWMA calculations. |
double[] |
getMostRecentSampledValues()
Get an array holding the values of the most recent sampled, or measured values used in calculating the records calculateValue value. |
BoolArray |
getValidValueFlags()
Get the reference to the validValueFlags array. |
java.lang.String |
getValueDescription()
Get the description of calculation value record. |
boolean |
isValueValid(int index)
Checks to the validValueFlags to see if a value in the calculated historical data array, calculatedValues, is valid. |
void |
reset()
Reset the history buffer of the SPCCalculatedValueRecord class. |
void |
setCalculatedValue(double value)
Get the current calculation value for this record. |
double |
SetCalculatedValue(DoubleArray v)
Calculate the calculated value value based on the data in the source array. |
double |
setCalculatedValue(DoubleArray v,
int totalsamples)
Calculate the calculated value value based on the data in the source array and the specified calculation type. |
void |
setCalculatedValues(double[] value)
Get the reference to the calculatedValue array. |
void |
setCalculationType(int value)
Set the calculation type for this calculation value record. |
void |
setEWMA_Lambda(double value)
Set the lambda value for EWMA calculations. |
void |
setEWMA_StartingValue(double value)
Set the lambda value for EWMA calculations. |
void |
setMA_w(int value)
Set the lambda value for EWMA calculations. |
void |
setMostRecentSampledValues(double[] value)
Set an array holding the values of the most recent sampled, or measured values used in calculating the records calculateValue value. |
void |
setValueDescription(java.lang.String value)
Set the description of calculation value record. |
static java.util.Vector<SPCCalculatedValueRecord> |
TypeSafeVectorCopy(java.util.Vector<SPCCalculatedValueRecord> source)
Returns an object that is a typesafe copy of the source Vector |
Methods inherited from class com.quinncurtis.chart2djava.ChartObj |
---|
copy, errorCheck, getChartObjIDCntr, getChartObjType, getThisChartObjID, TypeSafeVectorCopy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SPC_CUSTOM_CALC
public static final int SPC_CUSUM_CMINUS_CALC
public static final int SPC_CUSUM_CPLUS_CALC
public static final int SPC_EWMA_CALC
public static final int SPC_FRACTION_DEFECTIVE_PARTS_CALC
public static final int SPC_FRACTION_DEFECTIVE_PARTS_VSS_CALC
public static final int SPC_FRACTION_DEFECTS_CALC
public static final int SPC_FRACTION_DEFECTS_VSS_CALC
public static final int SPC_INDIVIDUAL_ABS_RANGE_CALC
public static final int SPC_INDIVIDUAL_COPY_VALUE
public static final int SPC_INDIVIDUAL_RANGE_CALC
public static final int SPC_MA_CALC
public static final int SPC_MAX_CALC
public static final int SPC_MEAN_CALC
public static final int SPC_MEAN_N_MINUS_1_CALC
public static final int SPC_MEAN_VSS_CALC
public static final int SPC_MEDIAN_CALC
public static final int SPC_MIN_CALC
public static final int SPC_PERCENT_DEFECTIVE_PARTS_CALC
public static final int SPC_PERCENT_DEFECTIVE_PARTS_VSS_CALC
public static final int SPC_PERCENT_DEFECTS_CALC
public static final int SPC_RANGE_CALC
public static final int SPC_STD_DEVIATION_CALC
public static final int SPC_STD_DEVIATION_VSS_CALC
public static final int SPC_SUM_CALC
public static final int SPC_TOTAL_DEFECTIVE_PARTS_CALC
public static final int SPC_TOTAL_DEFECTS_CALC
public static final int SPC_VARIANCE_CALC
Constructor Detail |
---|
public SPCCalculatedValueRecord()
public SPCCalculatedValueRecord(int calctype, java.lang.String description)
calctype
- The calculation type for this record. Use one of the SPCCalculatedValueRecrd
calculation type constants.description
- The description for this record.Method Detail |
---|
public double calculateHistoryStatistic(DoubleArray v, int calctype)
v
- The source array for the calculation.calctype
- The calculation type for the calculation.
public static double calculateHistoryStatisticStatic(DoubleArray v, int calctype)
v
- The source array for the calculation.calctype
- The calculation type for the calculation.
public java.lang.Object clone()
clone
in class java.lang.Object
public void Copy(SPCCalculatedValueRecord source)
source
- The source object.public double getCalculatedValue()
public double[] getCalculatedValues()
public double getCalculatedValueStatistic(int stattype)
stattype
- The calculation type to use.
public int getCalculationType()
public double getEWMA_Lambda()
public double getEWMA_StartingValue()
public int getMA_w()
public double[] getMostRecentSampledValues()
public BoolArray getValidValueFlags()
public java.lang.String getValueDescription()
public boolean isValueValid(int index)
index
- The index of the data value to check.
public void reset()
public void setCalculatedValue(double value)
public double SetCalculatedValue(DoubleArray v)
v
- The source array for the calculation.
public double setCalculatedValue(DoubleArray v, int totalsamples)
v
- The source array for the calculation.totalsamples
- For the defect calculation types, the divisor is not the length of the
source array, rather this value.
public void setCalculatedValues(double[] value)
public void setCalculationType(int value)
public void setEWMA_Lambda(double value)
public void setEWMA_StartingValue(double value)
public void setMA_w(int value)
public void setMostRecentSampledValues(double[] value)
public void setValueDescription(java.lang.String value)
public static java.util.Vector<SPCCalculatedValueRecord> TypeSafeVectorCopy(java.util.Vector<SPCCalculatedValueRecord> source)
source
- source object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |