Class RealValueFileEventStream

    • Constructor Detail

      • RealValueFileEventStream

        public RealValueFileEventStream​(String fileName)
                                 throws IOException
        Instantiates a RealValueFileEventStream from the specified file name.
        Parameters:
        fileName - The name fo the file containing the events.
        Throws:
        IOException - Thrown if the specified file can not be read.
    • Method Detail

      • parseContexts

        public static float[] parseContexts​(String[] contexts)
        Parses the specified contexts and re-populates context array with features and returns the values for these features. If all values are unspecified, then null is returned.
        Parameters:
        contexts - The contexts with real values specified.
        Returns:
        The value for each context or null if all values are unspecified.
      • read

        public Event read()
                   throws IOException
        Description copied from interface: ObjectStream
        Returns the next ObjectStream object. Calling this method repeatedly until it returns null will return each object from the underlying source exactly once.
        Specified by:
        read in interface ObjectStream<Event>
        Overrides:
        read in class FileEventStream
        Returns:
        The next object or null to signal that the stream is exhausted.
        Throws:
        IOException - Thrown if there is an error during reading.