|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.gla.dcs.renaissance.iqir.qpr.EigenDecomposition
uk.ac.gla.dcs.renaissance.iqir.qpr.Subspace
public class Subspace
A document subspace is defined by the basis vectors (matrix EigenDecomposition.mU ). A diagonal matrix (EigenDecomposition.mS) defines the weights associated to the basis vectors
Field Summary |
---|
Fields inherited from class uk.ac.gla.dcs.renaissance.iqir.qpr.EigenDecomposition |
---|
map, mS, mU |
Constructor Summary | |
---|---|
Subspace(Density density)
Shallow copy of a density |
|
Subspace(DensityTracker tracker)
|
|
Subspace(DensityTracker tracker,
boolean deepCopy)
|
|
Subspace(bpiwowar.maths.matrix.DoubleMatrix1D ray,
boolean local)
Constructs a one-dimensional subspace |
|
Subspace(bpiwowar.maths.matrix.DoubleMatrix2D u,
bpiwowar.maths.matrix.DiagonalDoubleMatrix s,
it.unimi.dsi.fastutil.ints.Int2IntSortedMap map)
|
|
Subspace(bpiwowar.maths.svd.IncrementalSVD svd,
it.unimi.dsi.fastutil.ints.Int2IntSortedMap map)
|
|
Subspace(SubspaceTracker tracker)
Builds the subspace from a tracker |
Method Summary | |
---|---|
Density |
project(Density density,
boolean orthogonal)
|
Density |
project(Density density,
boolean orthogonal,
boolean fuzzy)
Project a density onto the (fuzzy) subspace or its orthogonal. |
Density |
project(Density density,
boolean orthogonal,
boolean fuzzy,
bpiwowar.utils.holders.DoubleHolder norm)
Project a density onto the (fuzzy) subspace or its orthogonal. |
bpiwowar.maths.matrix.DoubleMatrix1D |
project(bpiwowar.maths.matrix.DoubleMatrix1D v,
boolean orthogonal)
|
bpiwowar.maths.matrix.DoubleMatrix1D |
project(bpiwowar.maths.matrix.DoubleMatrix1D v,
boolean orthogonal,
boolean fuzzy)
Project a vector into this subspace (or its orthogonal) |
Density |
projectLocal(Density density,
boolean orthogonal,
boolean fuzzy,
bpiwowar.utils.holders.DoubleHolder norm)
Project a density onto the (fuzzy) subspace or its orthogonal. |
bpiwowar.maths.matrix.DenseDoubleMatrix1D |
projectLocal(bpiwowar.maths.matrix.DoubleMatrix1D v,
boolean orthogonal,
boolean fuzzy)
Project a vector which components in the local term space |
bpiwowar.maths.matrix.DoubleMatrix1D |
projectLocalToGlobal(bpiwowar.maths.matrix.DoubleMatrix1D local2Vector,
int[] local2ToGlobalMap,
boolean orthogonal,
boolean fuzzy)
|
Methods inherited from class uk.ac.gla.dcs.renaissance.iqir.qpr.EigenDecomposition |
---|
getGlobalMatrix, getLocalToGobalTermIdMap, getMatrix, getRank, getS, normalise, normalise, normalise, trim |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Subspace(bpiwowar.maths.matrix.DoubleMatrix2D u, bpiwowar.maths.matrix.DiagonalDoubleMatrix s, it.unimi.dsi.fastutil.ints.Int2IntSortedMap map)
public Subspace(bpiwowar.maths.svd.IncrementalSVD svd, it.unimi.dsi.fastutil.ints.Int2IntSortedMap map)
public Subspace(SubspaceTracker tracker)
tracker
- public Subspace(DensityTracker tracker)
public Subspace(DensityTracker tracker, boolean deepCopy)
public Subspace(Density density)
density
- public Subspace(bpiwowar.maths.matrix.DoubleMatrix1D ray, boolean local)
ray
- The vector that defines the subspaceMethod Detail |
---|
public bpiwowar.maths.matrix.DenseDoubleMatrix1D projectLocal(bpiwowar.maths.matrix.DoubleMatrix1D v, boolean orthogonal, boolean fuzzy)
v
- The vector to projectorthogonal
- True if we want to project v on the orthogonal
public Density projectLocal(Density density, boolean orthogonal, boolean fuzzy, bpiwowar.utils.holders.DoubleHolder norm)
density
- The density to be projectedorthogonal
- True if the density should be projected in the orthogonal
subspacefuzzy
- True if this subspace should fuzzynorm
- The norm of the density before normalisation will be set in
this holder (if not null)
public bpiwowar.maths.matrix.DoubleMatrix1D projectLocalToGlobal(bpiwowar.maths.matrix.DoubleMatrix1D local2Vector, int[] local2ToGlobalMap, boolean orthogonal, boolean fuzzy)
local2Vector
- a vector in its local termspace (called local2)local2ToGlobalMap
- the reverse map from the vector's local termspace to the
global oneorthogonal
- if we should project to the orthogonal subspacefuzzy
- True if the projection should be on the "fuzzy" subspace
public Density project(Density density, boolean orthogonal)
density
- the density to be projectedorthogonal
- if we want to project to the orthogonal subspace
public bpiwowar.maths.matrix.DoubleMatrix1D project(bpiwowar.maths.matrix.DoubleMatrix1D v, boolean orthogonal)
public bpiwowar.maths.matrix.DoubleMatrix1D project(bpiwowar.maths.matrix.DoubleMatrix1D v, boolean orthogonal, boolean fuzzy)
v
- A vector (in the global term id space)orthogonal
- If we should project to the orthogonalFuzzy
-
public Density project(Density density, boolean orthogonal, boolean fuzzy)
density
- The density to be projectedorthogonal
- True if the density should be projected in the orthogonal
subspacefuzzy
- True if this subspace should fuzzy
public Density project(Density density, boolean orthogonal, boolean fuzzy, bpiwowar.utils.holders.DoubleHolder norm)
density
- The density to be projectedorthogonal
- True if the density should be projected in the orthogonal
subspacefuzzy
- True if this subspace should fuzzynorm
- The norm of the density before normalisation will be set in
this holder (if not null)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |