Class Filter

    • Field Detail

      • cardinal

        final boolean cardinal
        is this filter cardinal? ie, does func(x) = (x==0) for integer x?
      • support

        double support
        radius of nonzero portion
      • blur

        double blur
        blur factor (1=normal)
    • Constructor Detail

      • Filter

        protected Filter()
      • Filter

        protected Filter​(boolean cardinal,
                         double support,
                         double blur)
    • Method Detail

      • nameByType

        public static java.lang.String nameByType​(FilterType type)
        Find a filter name by its type.
        Parameters:
        type - the filter type
        Returns:
        filter name
      • typeByName

        public static FilterType typeByName​(java.lang.String name)
        Find a filter type by its name.
        Parameters:
        name - the filter name
        Returns:
        filter type
      • byType

        public static Filter byType​(FilterType type)
        Find a filter by its type.
        Parameters:
        type - the filter type
        Returns:
        the Filter
      • fWindowed

        public double fWindowed​(double x)
      • f

        public abstract double f​(double x)
      • getName

        public java.lang.String getName()
        Return the filter name.
        Returns:
        the filter's name
      • getSupport

        public double getSupport()
        Returns:
        the support
      • setSupport

        public void setSupport​(double support)
        Parameters:
        support - the support to set
      • getBlur

        public double getBlur()
        Returns:
        the blur
      • setBlur

        public void setBlur​(double blur)
        Parameters:
        blur - the blur to set