Interface MissingValueDoubleCalculations

    • Method Detail

      • addMissing

        Matrix addMissing​(Calculation.Ret returnType,
                          int dimension,
                          double... percentMissing)
        Adds a specified amount of missing values (Double.NaN) to the Matrix
        Parameters:
        returnType - Select whether a new or a linked Matrix is returned, or if the operation is performed on the original Matrix
        dimension - The axis along which to calculate
        percentMissing - defines how many values are missing 0.0 to 1.0
        Returns:
        Matrix with missing values @
      • countMissing

        Matrix countMissing​(Calculation.Ret returnType,
                            int dimension)
        Counts the missing values within the matrix, i.e. Infinity or NaN
        Parameters:
        returnType - Select whether a new or a linked Matrix is returned, or if the operation is performed on the original Matrix
        dimension - The axis along which to calculate
        Returns:
        Matrix with counts of missing values @
      • impute

        Matrix impute​(Calculation.Ret returnType,
                      Impute.ImputationMethod method,
                      java.lang.Object... parameters)
        Replaces missing values with various methods
        Parameters:
        returnType - Select whether a new or a linked Matrix is returned, or if the operation is performed on the original Matrix
        method - the imputation method to use
        parameters - specify a set of parameters if needed
        Returns:
        Matrix with missing values replaced @
      • deleteRowsWithMissingValues

        Matrix deleteRowsWithMissingValues​(Calculation.Ret returnType,
                                           long threshold)