Class PunktScaler

java.lang.Object
org.openjump.core.attributeoperations.statistics.PunktScaler
All Implemented Interfaces:
ScaleChanger

public class PunktScaler extends Object implements ScaleChanger
class to scale the "coordinates" of a punkt object, often needed for statistical calculations. Scales the given "coordinates" to values between 0 and 1.
Author:
Ole Rahn, FH Osnabrück - University of Applied Sciences Osnabrück, Project: PIROL (2005), Subproject: Daten- und Wissensmanagement
See Also:
  • Field Details

    • dimension

      protected int dimension
    • mins

      protected double[] mins
    • ranges

      protected double[] ranges
  • Constructor Details

    • PunktScaler

      public PunktScaler(int dimension, double[] mins, double[] ranges)
    • PunktScaler

      public PunktScaler(PirolPoint[] punktArray)
  • Method Details

    • getValuesFromArray

      protected void getValuesFromArray(PirolPoint[] array) throws Exception
      Throws:
      Exception
    • scale

      public double scale(double value, int dimension)
      Specified by:
      scale in interface ScaleChanger
    • unScale

      public double unScale(double value, int dimension)
      Specified by:
      unScale in interface ScaleChanger