dbStat
Class NormalizeMinMax

java.lang.Object
  extended bydbStat.NormalizeMinMax
All Implemented Interfaces:
NormalizeVectorAttributes

public class NormalizeMinMax
extends java.lang.Object
implements NormalizeVectorAttributes

Class that implements NormalizeVectorAttributes.

Uses the min-max method to normalize the components of the set of given AttributeVectors


Constructor Summary
NormalizeMinMax()
           
 
Method Summary
private  double[] findMinMax(java.util.ArrayList vectorcollection, java.lang.String attrib)
          Finds the minimum and maximum value for given attribute among all vectors
 java.util.ArrayList NormalizeAttributes(java.util.ArrayList vectorCollection)
          Methods that normalizes a given ArrayList of AttributeVectors using the min-max method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NormalizeMinMax

public NormalizeMinMax()
Method Detail

NormalizeAttributes

public java.util.ArrayList NormalizeAttributes(java.util.ArrayList vectorCollection)
Methods that normalizes a given ArrayList of AttributeVectors using the min-max method

Specified by:
NormalizeAttributes in interface NormalizeVectorAttributes
Parameters:
vectorCollection - An ArrayList of AttributeVectors
Returns:
the Normalized Arraylist of the AttributeVectors

findMinMax

private double[] findMinMax(java.util.ArrayList vectorcollection,
                            java.lang.String attrib)
Finds the minimum and maximum value for given attribute among all vectors

Parameters:
vectorcollection - The ArrayList of AttributeVectors
attrib - The vector attribute for which the min-max is being found
Returns:
A bi-element array with min and max values