public abstract class AbstractTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
DIM |
protected double[] |
globalMax |
protected double[] |
globalMin |
protected double |
param1 |
protected double |
param2 |
protected String |
paramStr |
protected String |
paramStr2 |
protected Random |
R |
protected TestStats |
S |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTest(Random R,
TestStats S) |
| Modifier and Type | Method and Description |
|---|---|
abstract double[] |
generate() |
void |
generateQuery(double[] min,
double[] max,
double maxLen,
double avgQVol)
Generate query rectangle.
|
void |
generateQuery2(double[] min,
double[] max,
double maxLen,
double avgQVol)
Generate query rectangle.
|
void |
generateQuery3(double[] min,
double[] max,
double[] maxLen,
double[] maxLenProduct,
double avgQVol,
boolean ignoreChecks)
Generate query rectangle.
|
abstract double[][] |
generateUpdates(int n,
double[] data,
double[][] ups) |
void |
generateWindowQueries(double[][] lower,
double[][] upper) |
int |
getN() |
TestStats |
getTestStats() |
TestHandle |
getTestType() |
double |
len(int d) |
void |
log(String str) |
void |
logWarning(String str) |
double |
max(int d) |
double |
maxUpdateDistance() |
double |
min(int d) |
protected final Random R
protected int DIM
protected final double param1
protected final double param2
protected String paramStr
protected String paramStr2
protected final TestStats S
protected double[] globalMin
protected double[] globalMax
public int getN()
public final TestHandle getTestType()
public double maxUpdateDistance()
public abstract double[] generate()
public abstract double[][] generateUpdates(int n,
double[] data,
double[][] ups)
public void log(String str)
public void logWarning(String str)
public TestStats getTestStats()
public void generateWindowQueries(double[][] lower,
double[][] upper)
public void generateQuery(double[] min,
double[] max,
double maxLen,
double avgQVol)
min - output: query box minimummax - output: query box maximummaxLen - maximum allowed length for a query box in any dimension.avgQVol - Average expected volume of a query boxpublic void generateQuery2(double[] min,
double[] max,
double maxLen,
double avgQVol)
generateQuery(double[], double[], double, double).
This method should be overwritten by tests that provide non-standard queries.min - output: query box minimummax - output: query box maximummaxLen - maximum allowed length for a query box in any dimension.avgQVol - Average expected volume of a query boxpublic void generateQuery3(double[] min,
double[] max,
double[] maxLen,
double[] maxLenProduct,
double avgQVol,
boolean ignoreChecks)
generateQuery2(double[], double[], double, double),
which did not work well with natural datasets (not cuboid).
This method should be overwritten by tests that provide non-standard queries.min - output: query box minimummax - output: query box maximummaxLen - maximum allowed length for a query box in any dimension.maxLenProduct - Increasing sum of products of lengthsavgQVol - Average expected volume of a query boxignoreChecks - ignore checks?public double min(int d)
public double max(int d)
public double len(int d)
Copyright © 2018 ETH Zurich. All rights reserved.