org.openjump.core.attributeoperations
Class AttributeOp

java.lang.Object
  extended by org.openjump.core.attributeoperations.AttributeOp

public class AttributeOp
extends java.lang.Object

description: provides some function to calculate mathematical indices like mean, max, median for a set of features.

Author:
sstein

Field Summary
static int COUNT
           
static int MAJORITY
           
static int MAX
           
static int MEAN
           
static int MEDIAN
           
static int MIN
           
static int MINORITY
           
static int STD
           
static int SUM
           
 
Constructor Summary
AttributeOp()
           
 
Method Summary
static double evaluateAttributes(int attributeOp, Feature[] features, java.lang.String attributeName)
           
static double evaluateAttributes(int attributeOp, java.util.List features, java.lang.String attributeName)
           
static java.lang.String getName(int attributeOP)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAJORITY

public static final int MAJORITY
See Also:
Constant Field Values

MINORITY

public static final int MINORITY
See Also:
Constant Field Values

MEAN

public static final int MEAN
See Also:
Constant Field Values

MEDIAN

public static final int MEDIAN
See Also:
Constant Field Values

MIN

public static final int MIN
See Also:
Constant Field Values

MAX

public static final int MAX
See Also:
Constant Field Values

STD

public static final int STD
See Also:
Constant Field Values

SUM

public static final int SUM
See Also:
Constant Field Values

COUNT

public static final int COUNT
See Also:
Constant Field Values
Constructor Detail

AttributeOp

public AttributeOp()
Method Detail

getName

public static java.lang.String getName(int attributeOP)

evaluateAttributes

public static double evaluateAttributes(int attributeOp,
                                        Feature[] features,
                                        java.lang.String attributeName)

evaluateAttributes

public static double evaluateAttributes(int attributeOp,
                                        java.util.List features,
                                        java.lang.String attributeName)