Package oms3.ngmf.util.cosu.luca
Class ParameterData
- java.lang.Object
-
- oms3.ngmf.util.cosu.luca.ParameterData
-
public class ParameterData extends Object
The class stores the data and provides methods related to parameter data.- Author:
- Makiko
-
-
Field Summary
Fields Modifier and Type Field Description static intBINARYCalibration type: parameter values are binarystatic intINDIVIDUALCalibration type: inidividual paramever values are used for calibrationstatic intMEANCalibration type: the mean value is used for calibration
-
Constructor Summary
Constructors Constructor Description ParameterData(String paramName)ParameterData(ParameterData pdata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerateValues(double newMean)voidgenerateValues(double[] values)double[]getCalibrationData()intgetCalibrationDataSize()boolean[]getCalibrationFlag()intgetCalibrationType()intgetDataSize()double[]getDataValue()doublegetDataValueAt(int index)doublegetLowerBound()doublegetMax()doublegetMean()doublegetMin()StringgetName()doublegetOriginalLowerBound()doublegetOriginalUpperBound()doublegetUpperBound()booleanhasBounds()booleanhasMinAndMax()booleanneedCalibrationAt(int index)voidremoveBounds()voidset(double[] dataValue, double lowerBound, double upperBound, int calibrationType, boolean[] needCalibration)voidsetCalibrationFlag(boolean[] calibrate)voidsetCalibrationType(int calibrationType)voidsetDataValue(double[] data)voidsetLowerAndUpperBounds(double lower, double upper)Set the lower and upper bounds, and the actual bounds are determined.voidsetLowerBound(double lowerBound)voidsetMax(double max)voidsetMean(double mean)voidsetMin(double min)voidsetName(String name)voidsetOriginalLowerBound(double lowerBound)voidsetOriginalUpperBound(double upperBound)voidsetStat(double[] dataValue, int calibrationType, boolean[] calibrate)voidsetUpperBound(double upperBound)
-
-
-
Field Detail
-
MEAN
public static final int MEAN
Calibration type: the mean value is used for calibration- See Also:
- Constant Field Values
-
INDIVIDUAL
public static final int INDIVIDUAL
Calibration type: inidividual paramever values are used for calibration- See Also:
- Constant Field Values
-
BINARY
public static final int BINARY
Calibration type: parameter values are binary- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ParameterData
public ParameterData(String paramName)
-
ParameterData
public ParameterData(ParameterData pdata)
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
hasBounds
public boolean hasBounds()
-
getLowerBound
public double getLowerBound()
-
setLowerBound
public void setLowerBound(double lowerBound)
-
getOriginalLowerBound
public double getOriginalLowerBound()
-
setOriginalLowerBound
public void setOriginalLowerBound(double lowerBound)
-
getUpperBound
public double getUpperBound()
-
setUpperBound
public void setUpperBound(double upperBound)
-
getOriginalUpperBound
public double getOriginalUpperBound()
-
setOriginalUpperBound
public void setOriginalUpperBound(double upperBound)
-
getMean
public double getMean()
-
setMean
public void setMean(double mean)
-
getDataValue
public double[] getDataValue()
-
getDataValueAt
public double getDataValueAt(int index)
-
setDataValue
public void setDataValue(double[] data)
-
getDataSize
public int getDataSize()
-
getCalibrationType
public int getCalibrationType()
-
setCalibrationType
public void setCalibrationType(int calibrationType)
-
getCalibrationDataSize
public int getCalibrationDataSize()
-
needCalibrationAt
public boolean needCalibrationAt(int index)
-
getCalibrationFlag
public boolean[] getCalibrationFlag()
-
setCalibrationFlag
public void setCalibrationFlag(boolean[] calibrate)
-
getMax
public double getMax()
-
setMax
public void setMax(double max)
-
getMin
public double getMin()
-
setMin
public void setMin(double min)
-
hasMinAndMax
public boolean hasMinAndMax()
-
removeBounds
public void removeBounds()
-
setStat
public void setStat(double[] dataValue, int calibrationType, boolean[] calibrate)
-
set
public void set(double[] dataValue, double lowerBound, double upperBound, int calibrationType, boolean[] needCalibration)
-
setLowerAndUpperBounds
public void setLowerAndUpperBounds(double lower, double upper)Set the lower and upper bounds, and the actual bounds are determined.
-
getCalibrationData
public double[] getCalibrationData()
-
generateValues
public void generateValues(double newMean)
-
generateValues
public void generateValues(double[] values)
-
-