infomat.vectorspace
Class Normalizer

java.lang.Object
  extended by infomat.vectorspace.Normalizer
All Implemented Interfaces:
HasProperties

public class Normalizer
extends java.lang.Object
implements HasProperties

For normalizeing rows or columns of a IMatrix.


Field Summary
(package private)  Properties properties
           
 
Constructor Summary
Normalizer()
           
Normalizer(Properties properties)
           
 
Method Summary
 Properties getDefaultProperties()
           
 Properties getProperties()
           
 java.lang.Object getPropertyValue(java.lang.String name)
           
 void normalize(IMatrix matrix)
           
static void normalizeMatrix(IMatrix matrix, boolean row)
          Normalizes the rows or columns of the matrix.
 void setProperties(Properties properties)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

Properties properties
Constructor Detail

Normalizer

public Normalizer()

Normalizer

public Normalizer(Properties properties)
Method Detail

getDefaultProperties

public Properties getDefaultProperties()
Specified by:
getDefaultProperties in interface HasProperties

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.String name)
Specified by:
getPropertyValue in interface HasProperties

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
                 throws PropertyNotFoundException
Specified by:
setProperty in interface HasProperties
Throws:
PropertyNotFoundException

getProperties

public Properties getProperties()
Specified by:
getProperties in interface HasProperties

setProperties

public void setProperties(Properties properties)
Specified by:
setProperties in interface HasProperties

normalize

public void normalize(IMatrix matrix)

normalizeMatrix

public static void normalizeMatrix(IMatrix matrix,
                                   boolean row)
Normalizes the rows or columns of the matrix.