Class AddSingleScale

  • All Implemented Interfaces:
    Algorithm

    @Description("Setup a scaling so that all dimensions are scaled equally in visualization.")
    public class AddSingleScale
    extends java.lang.Object
    implements Algorithm
    Pseudo "algorithm" that computes the global min/max for a relation across all attributes. FIXME: this should become part of relation metadata.
    Since:
    0.5.0
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) double[] minmax
      Minimum and maximum to use.
    • Constructor Summary

      Constructors 
      Constructor Description
      AddSingleScale​(double[] minmax)
      Constructor.
    • Field Detail

      • minmax

        double[] minmax
        Minimum and maximum to use.
    • Constructor Detail

      • AddSingleScale

        public AddSingleScale​(double[] minmax)
        Constructor.
        Parameters:
        minmax - Minimum and maximum values
    • Method Detail

      • run

        public java.lang.Void run​(Database database)
        Run the algorithm on all vector relations of a database.
        Parameters:
        database - Database
        Returns:
        Empty (scales are attached to the relations)
      • getInputTypeRestriction

        public TypeInformation[] getInputTypeRestriction()
        Description copied from interface: Algorithm
        Get the input type restriction used for negotiating the data query.
        Specified by:
        getInputTypeRestriction in interface Algorithm
        Returns:
        Type restriction