This is an automated email from the ASF dual-hosted git repository.
pavelvesely pushed a commit to branch ReqExperiment
in repository
https://gitbox.apache.org/repos/asf/datasketches-characterization.git
The following commit(s) were added to refs/heads/ReqExperiment by this push:
new b456bf0 zoomin sqrt. pattern for stream maker
b456bf0 is described below
commit b456bf0352719d2d7b13cc993467919c28809d0f
Author: Pavel Vesely <[email protected]>
AuthorDate: Mon Jan 11 19:18:04 2021 +0100
zoomin sqrt. pattern for stream maker
---
src/main/resources/quantiles/ReqSketchAccuracyJob.conf | 10 +++++-----
.../characterization/quantiles/StreamMaker.java | 14 +++++++++++++-
2 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/src/main/resources/quantiles/ReqSketchAccuracyJob.conf
b/src/main/resources/quantiles/ReqSketchAccuracyJob.conf
index 17a12dd..ee9416a 100644
--- a/src/main/resources/quantiles/ReqSketchAccuracyJob.conf
+++ b/src/main/resources/quantiles/ReqSketchAccuracyJob.conf
@@ -18,12 +18,12 @@
JobProfile=org.apache.datasketches.characterization.quantiles.ReqSketchAccuracyProfile
# Stream Pattern
-Pattern=Sorted # Sorted, Reversed, Zoomin, Zoomout, Random, Sqrt, FlipFlop
+Pattern=Random # Sorted, Reversed, Zoomin, Zoomout, Random, Sqrt, FlipFlop,
ZoominSqrt
Offset=1 #0 for min value of 0; 1 for min value of 1
## Stream lengths
-LgMin=26 # The starting stream length
-LgMax=26 # How high the stream length goes
+LgMin=24 # The starting stream length
+LgMax=24 # How high the stream length goes
LgDelta=2 # If > 0, this is the lg Increment
PPO=1 # The horizontal x-resolution of trials points
@@ -31,7 +31,7 @@ PPO=1 # The horizontal x-resolution of trials points
LgTrials=12 # lgTrials at every stream length
ErrQSkLgK=12 # the rank error distribution sketch LgK
ErrHllSkLgK=12 # the rank error HLL sketch Lgk
-Shuffle=true # If true, shuffle before each trial
+Shuffle=false # If true, shuffle before each trial
# Plotting
NumPlotPoints=100 # number of plot points along the x-axis
@@ -43,7 +43,7 @@ RankRange=1.0 # range of rank to plot. E.g., given 0.3: if
LRA => 0 to 0.3; if H
# Specific sketch config
K=12 # sketch size and accuracy parameter
-HRA=true # if true use high-rank accuracy, otherwise low-rank accuracy
+HRA=false # if true use high-rank accuracy, otherwise low-rank accuracy
Compatible=false
# For LRA, LE,GT have the converged point at rank 1.0
# For HRA, LT,GE have the converged point at rank 0.0
diff --git
a/src/test/java/org/apache/datasketches/characterization/quantiles/StreamMaker.java
b/src/test/java/org/apache/datasketches/characterization/quantiles/StreamMaker.java
index b43570b..d3f2db8 100644
---
a/src/test/java/org/apache/datasketches/characterization/quantiles/StreamMaker.java
+++
b/src/test/java/org/apache/datasketches/characterization/quantiles/StreamMaker.java
@@ -37,7 +37,7 @@ public class StreamMaker {
static final String LS = System.getProperty("line.separator");
static String TAB = "\t";
public enum Pattern { Sorted, Reversed, Zoomin, Zoomout, Random, Sqrt,
FlipFlop,
- Clustered, ClusteredZoomin }
+ Clustered, ClusteredZoomin, ZoominSqrt }
public float min = 0;
public float max = 0;
@@ -94,6 +94,18 @@ public class StreamMaker {
}
break;
}
+ case ZoominSqrt: {
+ int t = (int)Math.floor(Math.sqrt(n));
+ int i = 0;
+ for (int j = 0; j < t - 1; j++) {
+ arr[i] = j + offset; i++;
+ for (int k = 0; k < t; k++) {
+ arr[i] = (t - j) * t - k - 1 + offset; i++;
+ }
+ }
+ arr[i] = t - 1 + offset;
+ break;
+ }
case FlipFlop: {
FlipFlopStream ffs = new FlipFlopStream(n, offset);
ffs.flipFlop(1, 1, n * 2 / 5);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]