Class DoubleCalculationMatrix

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Matrix>, HasMetaData, BaseMatrix, BooleanCalculations, CanPerformCalculations, DenseMatrix, DenseMatrix2D, DenseMatrixMultiD, BaseDoubleMatrix, BasicDoubleCalculations, DoubleCalculations, BasicEntrywiseDoubleCalculations, CreatorDoubleCalculations, EntrywiseDoubleCalculations, HyperbolicDoubleCalculations, MiscEntrywiseDoubleCalculations, RoundingDoubleCalculations, TrigonometricDoubleCalculations, DecompositionDoubleCalculations, DiscretizeCalculations, GeneralDoubleCalculations, MiscGeneralDoubleCalculations, MissingValueDoubleCalculations, StatisticalDoubleCalculations, DenseDoubleMatrix, DenseDoubleMatrix2D, DenseDoubleMatrixMultiD, DoubleMatrix, DoubleMatrix2D, DoubleMatrixMultiD, SparseDoubleMatrix, SparseDoubleMatrix2D, SparseDoubleMatrixMultiD, BaseGenericMatrix<Double>, DenseGenericMatrix<Double>, DenseGenericMatrix2D<Double>, DenseGenericMatrixMultiD<Double>, GenericMatrix<Double>, GenericMatrix2D<Double>, GenericMatrixMultiD<Double>, SparseGenericMatrix<Double>, SparseGenericMatrix2D<Double>, SparseGenericMatrixMultiD<Double>, BaseMatrixProperties, Clearable, Conversions, CoordinateFunctions, CoreObject, DistanceMeasures, ExtendedMatrixProperties, GettersAndSetters, HasDescription, HasGUIObject, HasId, HasLabel, IntCalculations, Matrix, Matrix2D, MatrixMultiD, BaseNumberMatrix<Double>, DenseNumberMatrix<Double>, DenseNumberMatrix2D<Double>, DenseNumberMatrixMultiD<Double>, NumberMatrix<Double>, NumberMatrix2D<Double>, NumberMatrixMultiD<Double>, SparseNumberMatrix<Double>, SparseNumberMatrix2D<Double>, SparseNumberMatrixMultiD<Double>, ObjectCalculations, SparseMatrix, SparseMatrix2D, SparseMatrixMultiD, StringCalculations

public class DoubleCalculationMatrix extends AbstractDoubleMatrix
See Also:
  • Field Details

  • Constructor Details

    • DoubleCalculationMatrix

      public DoubleCalculationMatrix(DoubleCalculation calculation)
  • Method Details

    • containsCoordinates

      public boolean containsCoordinates(long... coordinates)
      Description copied from interface: CoordinateFunctions
      Determines if the given Coordinates are part of the Matrix. If the Matrix is dense, true is returned for all Coordinates smaller than the Matrix's size. For sparse Matrices, this function checks if the coordinates are actually stored in the matrix or not.
      Parameters:
      coordinates - The coordinates to check
      Returns:
      a boolean stating if the coordinates are part of the Matrix
    • availableCoordinates

      public Iterable<long[]> availableCoordinates()
      Description copied from interface: CoordinateFunctions
      Returns an Iterator that only goes over the coordinates in the Matrix that are stored. For most Matrices, this is the same as allCoordinates(). For sparse Matrices, it iterates only over the entries in it.
      Returns:
      Iterable over the saved entries in a Matrix.
    • getSize

      public long[] getSize()
      Specified by:
      getSize in interface BaseMatrixProperties
      Overrides:
      getSize in class AbstractMatrix
    • fireValueChanged

      public void fireValueChanged()
      Description copied from interface: HasGUIObject
      This method is used to signal changes in the object to the corresponding GUIObject if it exists.

      Maybe this method can be deleted, when all changes are made trough the GUIObject?

      Specified by:
      fireValueChanged in interface HasGUIObject
      Specified by:
      fireValueChanged in interface Matrix
      Overrides:
      fireValueChanged in class AbstractMatrix
    • getDouble

      public double getDouble(long... coordinates)
      Description copied from interface: DoubleMatrixMultiD
      Returns a double representation of an entry in the matrix. The stored value will be converted to a double as good as possible.
      Parameters:
      coordinates - location of the entry
      Returns:
      a double representation of the entry @
    • setDouble

      public void setDouble(double value, long... coordinates)
      Description copied from interface: DoubleMatrixMultiD
      Sets an entry in the matrix to a double value. If the matrix cannot store double values, the value will be represented as good as possible.
      Parameters:
      value - double value
      coordinates - location of the entry @
    • getDouble

      public double getDouble(long row, long column)
    • getDouble

      public double getDouble(int row, int column)
    • setDouble

      public void setDouble(double value, long row, long column)
    • setDouble

      public void setDouble(double value, int row, int column)
    • getObject

      public Double getObject(long row, long column)
      Specified by:
      getObject in interface GenericMatrix2D<Double>
      Overrides:
      getObject in class AbstractGenericMatrix<Double>
    • setObject

      public void setObject(Double value, long row, long column)
      Specified by:
      setObject in interface GenericMatrix2D<Double>
      Overrides:
      setObject in class AbstractGenericMatrix<Double>
    • getObject

      public Double getObject(int row, int column)
      Specified by:
      getObject in interface GenericMatrix2D<Double>
      Overrides:
      getObject in class AbstractGenericMatrix<Double>
    • setObject

      public void setObject(Double value, int row, int column)
      Specified by:
      setObject in interface GenericMatrix2D<Double>
      Overrides:
      setObject in class AbstractGenericMatrix<Double>
    • isSparse

      public final boolean isSparse()
    • clear

      public final void clear()