de.aitools.ir.retrievalmodels.representer
Class LatentSemanticIndexing.FixedReductionStrategyImpl
java.lang.Object
de.aitools.ir.retrievalmodels.representer.LatentSemanticIndexing.FixedReductionStrategyImpl
- Enclosing class:
- LatentSemanticIndexing
public class LatentSemanticIndexing.FixedReductionStrategyImpl
- extends java.lang.Object
Reduces the matrix to the given rank. If the rank of the matrix is
already below the given rank, nothing happens at all.
Method Summary |
int |
reduce()
|
int |
reduce(int dimension)
Reduces the matrix to a new rank given by dimension. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LatentSemanticIndexing.FixedReductionStrategyImpl
public LatentSemanticIndexing.FixedReductionStrategyImpl(int desiredDimension)
- Parameters:
desiredDimension
- the reduced rank of the matrix
LatentSemanticIndexing.FixedReductionStrategyImpl
public LatentSemanticIndexing.FixedReductionStrategyImpl()
reduce
public int reduce()
reduce
public int reduce(int dimension)
- Reduces the matrix to a new rank given by
dimension.
If the new dimension is greater than the original rank, the matrix
will not be modified.
- Parameters:
dimension
- the reduced rank of the matrix
- Returns:
- the new dimension of the matrix