|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.cnes.sirius.patrius.tools.ephemerisComparator.Data<Double>
fr.cnes.sirius.patrius.tools.ephemerisComparator.ComparisonData
public class ComparisonData
This class represents a set of results from a comparison of data objects
It contains a table of the deviations computed by the DataComparator. It provides some tools to the user. It can compute the mean and maximum deviation on every column. It can also build a ThresholdData object, by comparing all the deviations to a set of given thresholds.
Data
,
Serialized FormConstructor Summary | |
---|---|
ComparisonData(ArrayList<ArrayList<Double>> columns)
Instantiates a new ComparisonData object. |
|
ComparisonData(ArrayList<ArrayList<Double>> columns,
ArrayList<Double> thrshld)
this constructor initialises the columns and the thresholds. |
Method Summary | |
---|---|
ThresholdsData |
compareToThresholds()
Computes the margin of the data with respect to its thresholds. |
ArrayList<Double> |
getMaxDeviations()
gets the max of all the columns in a list. |
ArrayList<Double> |
getMeanDeviations()
gets the mean of all the columns in a list. |
ArrayList<Double> |
getStandardDeviations()
gets the standard deviation of all the columns in a list. |
double |
getThreshold(int columnIndex)
Gets the threshold related to a column. |
void |
setThreshold(int columnIndex,
double v)
Sets the threshold related to a column. |
void |
setThresholds(ArrayList<Double> thrshlds)
Sets the threshold related to a column. |
Methods inherited from class fr.cnes.sirius.patrius.tools.ephemerisComparator.Data |
---|
extractData, getColumn, getColumnNumber, getLine, getLineNumber |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComparisonData(ArrayList<ArrayList<Double>> columns)
columns
- the columns to put in the attribute
EphemerisComparatorRuntimeException
- when columns is nullpublic ComparisonData(ArrayList<ArrayList<Double>> columns, ArrayList<Double> thrshld)
columns
- the columns to put in the attributethrshld
- the corresponding thresholds. There should be as many thresholds as columns. The list can be null, in
which case the thresholds are put to +Infinity. If one of the thresholds is null, its value is put to
+Infinity too.
EphemerisComparatorRuntimeException
- when columns is null
EphemerisComparatorRuntimeException
- when thresholds does not have the same dimension as columnsMethod Detail |
---|
public final double getThreshold(int columnIndex)
columnIndex
- the index of the threshold
public final void setThreshold(int columnIndex, double v)
columnIndex
- the index of the thresholdv
- the value of thresholdpublic final void setThresholds(ArrayList<Double> thrshlds)
thrshlds
- the list of thresholdspublic final ThresholdsData compareToThresholds()
public final ArrayList<Double> getMeanDeviations()
public final ArrayList<Double> getMaxDeviations()
public final ArrayList<Double> getStandardDeviations()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |