public final class CpcWrapper extends Object
Constructor and Description |
---|
CpcWrapper(byte[] byteArray)
Construct a read-only view of the given byte array that contains a CpcSketch.
|
CpcWrapper(org.apache.datasketches.memory.Memory mem)
Construct a read-only view of the given Memory that contains a CpcSketch
|
Modifier and Type | Method and Description |
---|---|
double |
getEstimate()
Returns the best estimate of the cardinality of the sketch.
|
static Family |
getFamily()
Return the DataSketches identifier for this CPC family of sketches.
|
int |
getLgK()
Returns the configured Log_base2 of K of this sketch.
|
double |
getLowerBound(int kappa)
Returns the best estimate of the lower bound of the confidence interval given kappa,
the number of standard deviations from the mean.
|
double |
getUpperBound(int kappa)
Returns the best estimate of the upper bound of the confidence interval given kappa,
the number of standard deviations from the mean.
|
public CpcWrapper(org.apache.datasketches.memory.Memory mem)
mem
- the given Memorypublic CpcWrapper(byte[] byteArray)
byteArray
- the given byte arraypublic double getEstimate()
public static Family getFamily()
public int getLgK()
public double getLowerBound(int kappa)
kappa
- the given number of standard deviations from the mean: 1, 2 or 3.public double getUpperBound(int kappa)
kappa
- the given number of standard deviations from the mean: 1, 2 or 3.Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.