KnnMethod.Classes
Class MinMax

java.lang.Object
  extended by KnnMethod.Classes.MinMax

public class MinMax
extends java.lang.Object

Class, which serves for storing minimum a maximum value of all columns. Minimum and maximum value is used for normalization of an attribute into the interval [0..1].


Constructor Summary
MinMax()
          Empty constructor
MinMax(double minimum, double maximum)
          Constructor, which stores the minimum and maximum value of an attribute.
 
Method Summary
 double getMax()
          Returns the maximum value
 double getMin()
          Returns the minimum value
 void setMax(double newMax)
          Sets the maximum value
 void setMin(double newMin)
          Sets the minimum value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinMax

public MinMax(double minimum,
              double maximum)
Constructor, which stores the minimum and maximum value of an attribute.

Parameters:
minimum - minimum value of an attribute
maximum - maximum value of an attribute

MinMax

public MinMax()
Empty constructor

Method Detail

getMin

public double getMin()
Returns the minimum value

Returns:
minimum value

setMin

public void setMin(double newMin)
Sets the minimum value

Parameters:
newMin - minimum value to store

getMax

public double getMax()
Returns the maximum value

Returns:
maximum value

setMax

public void setMax(double newMax)
Sets the maximum value

Parameters:
newMax - maximum value to store