|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.gla.dcs.renaissance.kqpr.KernelEigenDecomposition<T>
uk.ac.gla.dcs.renaissance.kqpr.Density<T>
public class Density<T extends KernelVector>
A probability density
Field Summary |
---|
Fields inherited from class uk.ac.gla.dcs.renaissance.kqpr.KernelEigenDecomposition |
---|
mS, mY |
Constructor Summary | |
---|---|
Density(KernelEVD<T> evd,
boolean deepCopy)
Creates a new density |
Method Summary | |
---|---|
double |
computeProbability(Subspace<T> subspace,
boolean fuzzyEvent)
Compute the probability of an event |
bpiwowar.maths.matrix.DoubleMatrix2D |
getProbabilityMatrix(Subspace<T> subspace,
boolean fuzzyEvent)
Pre-computation of a probability. |
bpiwowar.maths.matrix.DoubleMatrix2D |
getProbabilityMatrix(T vector)
Get the matrix v^T * (U x S) where U is the basis and S is the square root of the eigenvalues. |
Methods inherited from class uk.ac.gla.dcs.renaissance.kqpr.KernelEigenDecomposition |
---|
getRank, normalise, normalise, trim |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Density(KernelEVD<T> evd, boolean deepCopy)
evd
- deepCopy
- Method Detail |
---|
public final double computeProbability(Subspace<T> subspace, boolean fuzzyEvent)
subspace
- The eventfuzzyEvent
- The event should be considered as "fuzzy" -- i.e. each
dimension is weighted by the corresponding sigma
public bpiwowar.maths.matrix.DoubleMatrix2D getProbabilityMatrix(Subspace<T> subspace, boolean fuzzyEvent)
Given the subspace representation S U and the density S' U', computes UT U' S' (crisp subspace) or S UT U' S' (fuzzy subspace). The sum of the squares of the matrix correspond to the probability of observing the subspace given the density.
Each row of the resulting matrix correspond to the probability associated with one of the dimension of the subspace. Similarly, each column is associated to a dimension of the density.
subspace
- fuzzyEvent
-
public bpiwowar.maths.matrix.DoubleMatrix2D getProbabilityMatrix(T vector)
vector
- The vector v
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |