Class AbstractDataIndexer

    • Constructor Detail

      • AbstractDataIndexer

        public AbstractDataIndexer()
    • Method Detail

      • getContexts

        public int[][] getContexts()
        Specified by:
        getContexts in interface DataIndexer
        Returns:
        Retrieves a 2-dimensional array whose first dimension is the event index and array this refers to contains the contexts for that event.
      • getNumTimesEventsSeen

        public int[] getNumTimesEventsSeen()
        Specified by:
        getNumTimesEventsSeen in interface DataIndexer
        Returns:
        Retrieves an array indexed by the event index indicating the number of times a particular event was seen.
      • getOutcomeList

        public int[] getOutcomeList()
        Specified by:
        getOutcomeList in interface DataIndexer
        Returns:
        Retrieves an array indicating the outcome index for each event.
      • getOutcomeLabels

        public String[] getOutcomeLabels()
        Specified by:
        getOutcomeLabels in interface DataIndexer
        Returns:
        Retrieves an array of outcome names indexed by outcome index.
      • getPredCounts

        public int[] getPredCounts()
        Specified by:
        getPredCounts in interface DataIndexer
        Returns:
        Retrieves an array of the count of each predicate in the events.
      • getNumEvents

        public int getNumEvents()
        Specified by:
        getNumEvents in interface DataIndexer
        Returns:
        Retrieves the number of total events indexed.
      • getValues

        public float[][] getValues()
        Specified by:
        getValues in interface DataIndexer
        Returns:
        Retrieves the values associated with each event context or null if integer values are to be used.