Class CorrelationDataPair
java.lang.Object
org.openjump.core.apitools.comparisonandsorting.Sortable
org.openjump.core.graph.pirolProject.PirolPoint
org.openjump.core.attributeoperations.statistics.CorrelationDataPair
- All Implemented Interfaces:
Comparable
- Author:
- Ole Rahn, FH Osnabrück - University of Applied Sciences Osnabrück, Project: PIROL (2005), Subproject: Daten- und Wissensmanagement modified: [sstein]: 16.Feb.2009 changed logger-entries to comments
-
Field Summary
Fields inherited from class PirolPoint
coordinates, dimension, index, marked, NULLPUNKT, scaled, scaler -
Constructor Summary
ConstructorsConstructorDescriptionCorrelationDataPair(double[] coords) CorrelationDataPair(double[] coords, int index) CorrelationDataPair(double[] coords, int index, ScaleChanger scaler) CorrelationDataPair(double[] coords, int index, ScaleChanger scaler, boolean prescaled) -
Method Summary
Modifier and TypeMethodDescriptionintcompareValues(int valIndex1, int valIndex2) function to compare value of a (scaled) data pairMethods inherited from class PirolPoint
clone, clonePunkt, compareTo, createVector, distanceBetween, distanceTo, equals, getCoordinate, getCoordinates, getDimension, getIndex, getSortFor, getX, getY, getZ, isMarked, liegtAuf, scale, setCoordinate, setCoordinates, setIndex, setMarked, setScaler, setSortFor, setX, setY, setZ, toCoordinate, toCoordinate, toString, unScale
-
Constructor Details
-
CorrelationDataPair
public CorrelationDataPair(double[] coords) - Parameters:
coords- coordinates as a double array
-
CorrelationDataPair
public CorrelationDataPair(double[] coords, int index) - Parameters:
coords- coordinates as a double arrayindex- index of the CorrelationDataPair
-
CorrelationDataPair
- Parameters:
coords- coordinates as a double arrayindex- index of the CorrelationDataPairscaler-prescaled-
-
CorrelationDataPair
- Parameters:
coords- coordinates as a double arrayindex- index of the CorrelationDataPairscaler-
-
-
Method Details
-
compareValues
function to compare value of a (scaled) data pair- Parameters:
valIndex1- index of first value to comparevalIndex2- index of first value to compare- Returns:
- 1 if first value > second value, 0 if equal, else -1
- Throws:
Exception- if an Exception occured
-