Class CoherenceValueArray

  • All Implemented Interfaces:
    Cloneable

    public class CoherenceValueArray
    extends CoherenceValue
    This simple structure represents an array of coherence values.
    Author:
    Michael Röder (michael.roeder@uni-paderborn.de)
    • Field Detail

      • values

        protected double[] values
      • stdDev

        protected double stdDev
    • Constructor Detail

      • CoherenceValueArray

        public CoherenceValueArray()
      • CoherenceValueArray

        public CoherenceValueArray​(double correlation,
                                   double[] values,
                                   boolean containsNaN,
                                   String[] line)
      • CoherenceValueArray

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

      • update

        public void update​(String[] line,
                           int startCorrValues,
                           int endCorrValues,
                           int avgCorrValues)
        Overrides:
        update in class CoherenceValue
      • getValues

        public double[] getValues()
        Returns:
        the values
      • setValues

        public void setValues​(double[] values)
        Parameters:
        values - the values to set
      • getStdDev

        public double getStdDev()
        Returns:
        the stdDev
      • setStdDev

        public void setStdDev​(double stdDev)
        Parameters:
        stdDev - the stdDev to set
      • summarize

        public void summarize()
        Calculates the arithmetic mean and the standard deviation of the values array.
      • create

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