@Reference(authors="N. Dalvi, C. R\u00e9, D. Suciu",title="Probabilistic databases: diamonds in the dirt",booktitle="Communications of the ACM 52, 7",url="https://doi.org/10.1145/1538788.1538810",bibkey="DBLP:journals/cacm/DalviRS09") @Reference(authors="O. Benjelloun, A. D. Sarma, A. Halevy, J. Widom",title="ULDBs: Databases with uncertainty and lineage",booktitle="Proc. of the 32nd Int. Conf. on Very Large Data Bases (VLDB)",url="http://www.vldb.org/conf/2006/p953-benjelloun.pdf",bibkey="DBLP:conf/vldb/BenjellounSHW06") public class UnweightedDiscreteUncertainObject extends AbstractUncertainObject implements DiscreteUncertainObject
drawSample(java.util.Random)
.
This is called the block independent-disjoint (BID model) in:
N. Dalvi, C. RĂ©, D. Suciu
Probabilistic databases: diamonds in the dirt
Communications of the ACM 52, 7
This is also known as the X-Tuple model in:
O. Benjelloun, A. D. Sarma, A. Halevy, J. Widom
ULDBs: Databases with uncertainty and lineage
In Proc. of the 32nd Int. Conf. on Very Large Data Bases (VLDB)
Modifier and Type | Class and Description |
---|---|
private static class |
UnweightedDiscreteUncertainObject.Factory
Factory class for this data type.
|
Modifier and Type | Field and Description |
---|---|
static FeatureVector.Factory<UnweightedDiscreteUncertainObject,?> |
FACTORY
Vector factory.
|
private DoubleVector[] |
samples
Sample vectors.
|
bounds, DEFAULT_TRY_LIMIT
DISCRETE_UNCERTAIN_OBJECT, UNCERTAIN_OBJECT_FIELD
TYPE
Constructor and Description |
---|
UnweightedDiscreteUncertainObject(DoubleVector[] samples)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DoubleVector |
drawSample(java.util.Random rand)
Draw a random sampled instance.
|
DoubleVector |
getCenterOfMass()
Get the center of mass of the uncertain object.
|
int |
getNumberSamples()
Get the number of samples available (or -1 for infinite).
|
DoubleVector |
getSample(int i)
Get the i'th vector.
|
double |
getWeight(int i)
Get the weight of the i'th vector.
|
computeBounds, getDimensionality, getMax, getMin, getValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDimensionality, getMax, getMin
getDimensionality, getValue, toString
public static final FeatureVector.Factory<UnweightedDiscreteUncertainObject,?> FACTORY
private DoubleVector[] samples
public UnweightedDiscreteUncertainObject(DoubleVector[] samples)
samples
- Samplespublic DoubleVector drawSample(java.util.Random rand)
UncertainObject
drawSample
in interface UncertainObject
drawSample
in class AbstractUncertainObject
rand
- Random generatorpublic DoubleVector getCenterOfMass()
UncertainObject
getCenterOfMass
in interface UncertainObject
getCenterOfMass
in class AbstractUncertainObject
public int getNumberSamples()
DiscreteUncertainObject
getNumberSamples
in interface DiscreteUncertainObject
public DoubleVector getSample(int i)
DiscreteUncertainObject
getSample
in interface DiscreteUncertainObject
i
- Indexpublic double getWeight(int i)
DiscreteUncertainObject
getWeight
in interface DiscreteUncertainObject
i
- IndexCopyright © 2019 ELKI Development Team. License information.