Class RandomProjectionFilter

    • Constructor Detail

      • RandomProjectionFilter

        public RandomProjectionFilter()
    • Method Detail

      • restartImpl

        protected void restartImpl()
        Description copied from class: AbstractStreamFilter
        Restarts this filter. All instances that extends from AbstractStreamFilter must implement restartImpl. restart uses restartImpl in AbstractStreamFilter.
        Specified by:
        restartImpl in class AbstractStreamFilter
      • getHeader

        public InstancesHeader getHeader()
        Description copied from interface: ExampleStream
        Gets the header of this stream. This is useful to know attributes and classes. InstancesHeader is an extension of weka.Instances.
        Returns:
        the header of this stream
      • getDescription

        public void getDescription​(StringBuilder sb,
                                   int indent)
        Description copied from interface: MOAObject
        Returns a string representation of this object. Used in AbstractMOAObject.toString to give a string representation of the object.
        Parameters:
        sb - the stringbuilder to add the description
        indent - the number of characters to indent
      • randomProjection

        public double[] randomProjection​(Instance instance,
                                         double[][] gm)
      • multiply

        public static double[] multiply​(double[][] matrix,
                                        double[] vector)