org.openjump.core.attributeoperations.statistics
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:
- java.lang.Comparable
public class CorrelationDataPair
- extends PirolPoint
- 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
| Fields inherited from class org.openjump.core.apitools.comparisonandsorting.Sortable |
sortFor |
|
Method Summary |
int |
compareValues(int valIndex1,
int valIndex2)
function to compare value of a (scaled) data pair |
| Methods inherited from class org.openjump.core.graph.pirolProject.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 |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CorrelationDataPair
public CorrelationDataPair(double[] coords)
- Parameters:
coords -
CorrelationDataPair
public CorrelationDataPair(double[] coords,
int index)
- Parameters:
coords - index -
CorrelationDataPair
public CorrelationDataPair(double[] coords,
int index,
ScaleChanger scaler,
boolean prescaled)
- Parameters:
coords - index - scaler - prescaled -
CorrelationDataPair
public CorrelationDataPair(double[] coords,
int index,
ScaleChanger scaler)
- Parameters:
coords - index - scaler -
compareValues
public int compareValues(int valIndex1,
int valIndex2)
throws java.lang.Exception
- 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:
java.lang.Exception