Class CoherenceValue

  • All Implemented Interfaces:
    Cloneable
    Direct Known Subclasses:
    AbsoluteCoherenceValues, CoherenceValueArray

    public class CoherenceValue
    extends Object
    implements Cloneable
    Represents the metadata and the correlation results for a single coherence measure (i.e. one line in the given data).
    Author:
    Michael Röder (michael.roeder@uni-paderborn.de)
    • Field Detail

      • correlation

        protected double correlation
      • containsNaN

        protected boolean containsNaN
      • line

        protected String[] line
    • Constructor Detail

      • CoherenceValue

        protected CoherenceValue()
      • CoherenceValue

        public CoherenceValue​(double correlation,
                              boolean containsNaN,
                              String[] line)
    • Method Detail

      • updateIfBetter

        public void updateIfBetter​(CoherenceValue newValues)
      • updateIfBetter

        public void updateIfBetter​(CoherenceValue newValues,
                                   boolean higherIsBetter)
      • update

        protected void update​(double correlation,
                              boolean containsNaN,
                              String[] line)
      • update

        public void update​(String[] line,
                           int startCorrValues,
                           int endCorrValues,
                           int avgCorrValues)
      • getCorrelation

        public double getCorrelation()
      • setCorrelation

        public void setCorrelation​(double correlation)
      • isContainsNaN

        public boolean isContainsNaN()
        Returns:
        the containsNaN
      • setContainsNaN

        public void setContainsNaN​(boolean containsNaN)
        Parameters:
        containsNaN - the containsNaN to set
      • getLine

        public String[] getLine()
        Returns:
        the line
      • setLine

        public void setLine​(String[] line)
        Parameters:
        line - the line to set
      • create

        public static CoherenceValue create​(String[] line,
                                            int startCorrValues,
                                            int endCorrValues,
                                            int avgCorrValues)