org.ujmp.core.doublematrix.calculation.general.misc
Class TfIdf

java.lang.Object
  extended by org.ujmp.core.calculation.AbstractCalculation
      extended by org.ujmp.core.doublematrix.calculation.AbstractDoubleCalculation
          extended by org.ujmp.core.doublematrix.calculation.general.misc.TfIdf
All Implemented Interfaces:
Serializable, Calculation, DoubleCalculation

public class TfIdf
extends AbstractDoubleCalculation

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ujmp.core.calculation.Calculation
Calculation.Ret
 
Field Summary
 
Fields inherited from interface org.ujmp.core.calculation.Calculation
ALL, COLUMN, LINK, NEW, NONE, ORIG, ROW
 
Constructor Summary
TfIdf(Matrix matrix, boolean calculateTf, boolean calculateIdf, boolean normalize)
           
 
Method Summary
 double getDouble(long... coordinates)
           
 long[] getSize()
           
 
Methods inherited from class org.ujmp.core.doublematrix.calculation.AbstractDoubleCalculation
calcLink, calcNew, calcOrig, getValueType, setDouble
 
Methods inherited from class org.ujmp.core.calculation.AbstractCalculation
allCoordinates, availableCoordinates, calc, calcMulti, contains, getAnnotation, getDimension, getSource, getSources, getStorageType, getValueCount, isSparse, setAnnotation, setDimension, setSources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ujmp.core.calculation.Calculation
allCoordinates, availableCoordinates, calc, calcMulti, contains, getAnnotation, getDimension, getSource, getSources, getStorageType, getValueCount, isSparse, setAnnotation, setDimension, setSources
 

Constructor Detail

TfIdf

public TfIdf(Matrix matrix,
             boolean calculateTf,
             boolean calculateIdf,
             boolean normalize)
Method Detail

getDouble

public double getDouble(long... coordinates)
                 throws MatrixException
Throws:
MatrixException

getSize

public long[] getSize()
Specified by:
getSize in interface Calculation
Overrides:
getSize in class AbstractCalculation


Copyright © 2010. All Rights Reserved.