Class PunktScaler
java.lang.Object
org.openjump.core.attributeoperations.statistics.PunktScaler
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPunktScaler(int dimension, double[] mins, double[] ranges) PunktScaler(PirolPoint[] punktArray) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgetValuesFromArray(PirolPoint[] array) doublescale(double value, int dimension) doubleunScale(double value, int dimension)
-
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
-
-
Method Details
-
getValuesFromArray
- Throws:
Exception
-
scale
public double scale(double value, int dimension) - Specified by:
scalein interfaceScaleChanger
-
unScale
public double unScale(double value, int dimension) - Specified by:
unScalein interfaceScaleChanger
-