org.openjump.core.attributeoperations.statistics
Class CorrelationDataPair

java.lang.Object
  extended by org.openjump.core.apitools.comparisonandsorting.Sortable
      extended by org.openjump.core.graph.pirolProject.PirolPoint
          extended by 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

Field Summary
 
Fields inherited from class org.openjump.core.graph.pirolProject.PirolPoint
coordinates, dimension, index, marked, NULLPUNKT, scaled, scaler
 
Fields inherited from class org.openjump.core.apitools.comparisonandsorting.Sortable
sortFor
 
Constructor Summary
CorrelationDataPair(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
 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
 

Constructor Detail

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 -
Method Detail

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 compare
valIndex2 - index of first value to compare
Returns:
1 if first value > second value, 0 if equal, else -1
Throws:
java.lang.Exception