fr.cnes.sirius.patrius.tools.ephemerisComparator
Class ThresholdsData

java.lang.Object
  extended by fr.cnes.sirius.patrius.tools.ephemerisComparator.Data<Double>
      extended by fr.cnes.sirius.patrius.tools.ephemerisComparator.ThresholdsData
All Implemented Interfaces:
Serializable

public class ThresholdsData
extends Data<Double>

This class contains the information on the margins of the deviations with regard to a set of thresholds.

The margins can be positive or negative, depending on whether the deviation was below or over the threshold. With this information, it can provide the number of acceptable and rejected lines in the data, and the first line where the data becomes unacceptable.

Since:
1.0
Version:
$Id: ThresholdsData.java 6359 2012-09-24 09:29:46Z CardosoP $
Author:
Philippe Pavero
See Also:
Serialized Form
Concurrency :
not thread-safe
Concurrency comment :
this class is not thread safe due to getFirstRefusedLines()

Constructor Summary
ThresholdsData(ArrayList<ArrayList<Double>> columns)
          Instantiates a new ThresholdsData object, using the constructor from Data.
 
Method Summary
 ArrayList<Integer> getFirstRefusedLines()
          computes the line number of the first margins column by column.
 ArrayList<Integer> getNumberOfAcceptable()
          computes the number of acceptable margins column by column
 ArrayList<Integer> getNumberOfRefused()
          computes the number of refused margins column by 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

ThresholdsData

public ThresholdsData(ArrayList<ArrayList<Double>> columns)
Instantiates a new ThresholdsData object, using the constructor from Data.

Parameters:
columns - the columns to put in the attribute
Since:
1.0
Method Detail

getNumberOfAcceptable

public final ArrayList<Integer> getNumberOfAcceptable()
computes the number of acceptable margins column by column

Returns:
the list of numbers of acceptable on each column
Since:
1.0

getNumberOfRefused

public final ArrayList<Integer> getNumberOfRefused()
computes the number of refused margins column by column

Returns:
the list of numbers of refused on each column
Since:
1.0

getFirstRefusedLines

public final ArrayList<Integer> getFirstRefusedLines()
computes the line number of the first margins column by column. The line number is -1 if all values were acceptable.

Returns:
the list of line numbers for each column
Since:
1.0


Copyright © 2016 CNES. All Rights Reserved.