Class ArrayAdapterDatabaseConnection

  • All Implemented Interfaces:
    DatabaseConnection

    public class ArrayAdapterDatabaseConnection
    extends AbstractDatabaseConnection
    Import an existing data matrix (double[rows][cols]) into an ELKI database. For efficiency, the data is not copied. If you modify the array afterwards, you can break indexes and algorithm results. It is your responsbility to not do this! Note: this class is not parameterizable, but can only be used from Java.
    Since:
    0.5.0
    Author:
    Erich Schubert
    • Field Detail

      • LOG

        private static final Logging LOG
        Class logger.
      • data

        double[][] data
        The actual data.
      • labels

        java.lang.String[] labels
        Object labels.
      • startid

        java.lang.Integer startid
        Starting ID for fixed object ids.
    • Constructor Detail

      • ArrayAdapterDatabaseConnection

        public ArrayAdapterDatabaseConnection​(double[][] data)
        Constructor.
        Parameters:
        data - Existing data matrix
      • ArrayAdapterDatabaseConnection

        public ArrayAdapterDatabaseConnection​(double[][] data,
                                              java.util.List<ObjectFilter> filters)
        Constructor.
        Parameters:
        data - Existing data matrix
        filters - Filters to apply, can be null
      • ArrayAdapterDatabaseConnection

        public ArrayAdapterDatabaseConnection​(double[][] data,
                                              java.lang.String[] labels)
        Constructor.
        Parameters:
        data - Existing data matrix
        labels - Object labels
      • ArrayAdapterDatabaseConnection

        public ArrayAdapterDatabaseConnection​(double[][] data,
                                              java.lang.String[] labels,
                                              java.util.List<ObjectFilter> filters)
        Constructor.
        Parameters:
        data - Existing data matrix
        labels - Object labels
        filters - Filters to apply, can be null
      • ArrayAdapterDatabaseConnection

        public ArrayAdapterDatabaseConnection​(double[][] data,
                                              java.lang.String[] labels,
                                              java.lang.Integer startid)
        Constructor.
        Parameters:
        data - Existing data matrix
        labels - Object labels
        startid - Starting object ID
      • ArrayAdapterDatabaseConnection

        public ArrayAdapterDatabaseConnection​(double[][] data,
                                              java.lang.String[] labels,
                                              java.lang.Integer startid,
                                              java.util.List<ObjectFilter> filters)
        Constructor.
        Parameters:
        data - Existing data matrix
        labels - Object labels
        startid - Starting object ID
        filters - Filters to apply, can be null