@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") @Reference(authors="Thomas Bernecker, Hans-Peter Kriegel, Matthias Renz, Florian Verhein, Andreas Z\u00fcfle",title="Probabilistic frequent itemset mining in uncertain databases",booktitle="Proc. 15th ACM SIGKDD Int. Conf. on Knowledge Discovery and Data Mining",url="https://doi.org/10.1145/1557019.1557039",bibkey="DBLP:conf/kdd/BerneckerKRVZ09") public class WeightedDiscreteUncertainObject 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)
If only a single sample is provided, this can be used to model existential uncertainty as in:
N. Dalvi, D. Suciu
Efficient query evaluation on probabilistic databases.
The VLDB Journal, 16(4)
and:
Thomas Bernecker, Hans-Peter Kriegel, Matthias Renz, Florian Verhein,
Andreas Züfle
Probabilistic frequent itemset mining in uncertain databases.
In Proc. 15th ACM SIGKDD Int. Conf. on Knowledge Discovery and Data Mining.
| Modifier and Type | Class and Description |
|---|---|
private static class |
WeightedDiscreteUncertainObject.Factory
Factory class for this data type.
|
| Modifier and Type | Field and Description |
|---|---|
static FeatureVector.Factory<WeightedDiscreteUncertainObject,?> |
FACTORY
Vector factory.
|
private DoubleVector[] |
samples
Samples
|
private double[] |
weights
Sample weights
|
bounds, DEFAULT_TRY_LIMITDISCRETE_UNCERTAIN_OBJECT, UNCERTAIN_OBJECT_FIELDTYPE| Constructor and Description |
|---|
WeightedDiscreteUncertainObject(DoubleVector[] samples,
double[] weights)
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, getValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDimensionality, getMax, getMingetDimensionality, getValue, toStringpublic static final FeatureVector.Factory<WeightedDiscreteUncertainObject,?> FACTORY
private DoubleVector[] samples
private double[] weights
public WeightedDiscreteUncertainObject(DoubleVector[] samples, double[] weights)
samples - Samplesweights - Weights (must be in ]0:1] and sum up to at most 1).public DoubleVector drawSample(java.util.Random rand)
UncertainObjectdrawSample in interface UncertainObjectdrawSample in class AbstractUncertainObjectrand - Random generatorpublic DoubleVector getCenterOfMass()
UncertainObjectgetCenterOfMass in interface UncertainObjectgetCenterOfMass in class AbstractUncertainObjectpublic int getNumberSamples()
DiscreteUncertainObjectgetNumberSamples in interface DiscreteUncertainObjectpublic DoubleVector getSample(int i)
DiscreteUncertainObjectgetSample in interface DiscreteUncertainObjecti - Indexpublic double getWeight(int i)
DiscreteUncertainObjectgetWeight in interface DiscreteUncertainObjecti - IndexCopyright © 2019 ELKI Development Team. License information.