Class DataProcessors


  • public class DataProcessors
    extends java.lang.Object
    Various data processors that could be useful when doing data science or similar. With ojAlgo it is highly advantageous to store data in columns (rather than rows). All the Transformation2D instances in this class assume columns represent variables, and rows samples.
    • Field Detail

      • CENTER

        public static final Transformation2D<java.lang.Double> CENTER
        Variables (columns) centered so that their average will be 0.0
      • CENTER_AND_SCALE

        public static final Transformation2D<java.lang.Double> CENTER_AND_SCALE
        Variables (columns) will be transformed to be [-1.0,1.0]. The minimum value will be transformed to -1.0 and the maximum to +1.0. The midrange will be transformed to 0.0.
      • SCALE

        public static final Transformation2D<java.lang.Double> SCALE
        Variables (columns) scaled to be within [-1.0,1.0] (divide by largest magnitude regardless of sign). If all values are positive the range will within [0.0,1.0]. If all are negative the range will be within [-1.0,0.0]
      • STANDARD_SCORE

        public static final Transformation2D<java.lang.Double> STANDARD_SCORE
        Will normalise each variable (columns) - replace each value with its standard score.
    • Constructor Detail

      • DataProcessors

        public DataProcessors()