public class Downsampling
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BASE_SAMPLING_LEVEL
The base (down)sampling level determines the granularity at which we can down/upsample.
|
| Constructor and Description |
|---|
Downsampling() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getEffectiveIndexIntervalAfterIndex(int index,
int samplingLevel,
int minIndexInterval)
Calculates the effective index interval after the entry at `index` in an IndexSummary.
|
static java.util.List<java.lang.Integer> |
getOriginalIndexes(int samplingLevel)
Returns a list that can be used to translate current index summary indexes to their original index before
downsampling.
|
static java.util.List<java.lang.Integer> |
getSamplingPattern(int samplingLevel)
Gets a list L of starting indices for downsampling rounds: the first round should start with the offset
given by L[0], the second by the offset in L[1], etc.
|
static int[] |
getStartPoints(int currentSamplingLevel,
int newSamplingLevel) |
public static final int BASE_SAMPLING_LEVEL
public static java.util.List<java.lang.Integer> getSamplingPattern(int samplingLevel)
samplingLevel - the base sampling levelpublic static java.util.List<java.lang.Integer> getOriginalIndexes(int samplingLevel)
samplingLevel - the current sampling level for the index summarypublic static int getEffectiveIndexIntervalAfterIndex(int index,
int samplingLevel,
int minIndexInterval)
index - an index into an IndexSummarysamplingLevel - the current sampling level for that IndexSummaryminIndexInterval - the min index interval (effective index interval at full sampling)public static int[] getStartPoints(int currentSamplingLevel,
int newSamplingLevel)
Copyright © 2016 The Apache Software Foundation