Class ColumnBase

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      D2Base<?>[] asArray()  
      double avg()  
      double avg​(int fromRow, int toRow)  
      D2Array copyToD2Array()  
      void fill​(D2Base<?> value)
      Fills column with given value
      void fill​(D2Base<?> value, int fromRow, int toRow)
      Fills column in rows fromRow ..
      sk.ipesoft.d2000.datatable.Column<?,​?,​?,​?,​?,​?,​?> getAnonymousDataColumn()  
      int getColumnIndex()  
      java.lang.String getName()  
      D2SD<?,​?> getStruct()  
      double max()  
      double max​(int fromRow, int toRow)  
      double min()  
      double min​(int fromRow, int toRow)  
      void replace​(D2Base<?> toFind, D2Base<?> toReplace)
      Replaces values toFind by value toReplace
      void replace​(D2Base<?> toFind, D2Base<?> toReplace, int fromRow, int toRow)
      Replaces values toFind by value toReplace searching rows fromRow ..
      double sum()  
      double sum​(int fromRow, int toRow)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • avg

        public double avg​(int fromRow,
                          int toRow)
        Parameters:
        fromRow -
        toRow -
        Returns:
        average value in rows fromRow .. toRow
      • avg

        public double avg()
        Returns:
        average value in column
      • copyToD2Array

        public D2Array copyToD2Array()
      • fill

        public void fill​(D2Base<?> value,
                         int fromRow,
                         int toRow)
                  throws sk.ipesoft.d2000.base.ExceptionInvalidValue
        Fills column in rows fromRow .. toRow with given value
        Parameters:
        value -
        fromRow -
        toRow -
        Throws:
        sk.ipesoft.d2000.base.ExceptionInvalidValue
      • fill

        public void fill​(D2Base<?> value)
        Fills column with given value
        Parameters:
        value -
      • getAnonymousDataColumn

        public final sk.ipesoft.d2000.datatable.Column<?,​?,​?,​?,​?,​?,​?> getAnonymousDataColumn()
      • getColumnIndex

        public final int getColumnIndex()
      • getName

        public java.lang.String getName()
      • getStruct

        public final D2SD<?,​?> getStruct()
      • max

        public double max​(int fromRow,
                          int toRow)
        Parameters:
        fromRow -
        toRow -
        Returns:
        maximal value in rows fromRow .. toRow
      • max

        public double max()
        Returns:
        maximal value in column
      • min

        public double min​(int fromRow,
                          int toRow)
        Parameters:
        fromRow -
        toRow -
        Returns:
        minimal value in row fromRow .. toRow
      • min

        public double min()
        Returns:
        minimal value in column
      • replace

        public void replace​(D2Base<?> toFind,
                            D2Base<?> toReplace,
                            int fromRow,
                            int toRow)
        Replaces values toFind by value toReplace searching rows fromRow .. toRow
        Parameters:
        toFind -
        toReplace -
        fromRow -
        toRow -
      • replace

        public void replace​(D2Base<?> toFind,
                            D2Base<?> toReplace)
        Replaces values toFind by value toReplace
        Parameters:
        toFind -
        toReplace -
      • sum

        public double sum​(int fromRow,
                          int toRow)
        Parameters:
        fromRow -
        toRow -
        Returns:
        sum of the values in rows fromRow .. toRow
      • sum

        public double sum()
        Returns:
        sum of all values in column
      • asArray

        public D2Base<?>[] asArray()