You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by le...@apache.org on 2020/10/19 19:04:44 UTC
[incubator-datasketches-characterization] 01/02: minor updates
This is an automated email from the ASF dual-hosted git repository.
leerho pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-characterization.git
commit 040c200841434b404a5bc0d60697c1baff661a6c
Author: Lee Rhodes <le...@users.noreply.github.com>
AuthorDate: Mon Oct 19 12:02:08 2020 -0700
minor updates
---
.../resources/quantiles/ReqSketchAccuracyJob.conf | 2 +-
.../characterization/quantiles/StreamMaker.java | 32 +++++++++++-----------
2 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/src/main/resources/quantiles/ReqSketchAccuracyJob.conf b/src/main/resources/quantiles/ReqSketchAccuracyJob.conf
index 76e9d03..da3f785 100644
--- a/src/main/resources/quantiles/ReqSketchAccuracyJob.conf
+++ b/src/main/resources/quantiles/ReqSketchAccuracyJob.conf
@@ -36,7 +36,7 @@ StdDev=1 # std deviation used when plotting LB, UB
RankRange=1.0 # range of rank to plot. E.g., given 0.3: if LRA => 0 to 0.3; if HRA => 0.7 to 1.0
# Specific sketch config
-K=50 # sketch size and accuracy parameter
+K=12 # sketch size and accuracy parameter
#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 2c2cf77..b43570b 100644
--- a/src/test/java/org/apache/datasketches/characterization/quantiles/StreamMaker.java
+++ b/src/test/java/org/apache/datasketches/characterization/quantiles/StreamMaker.java
@@ -34,6 +34,8 @@ import org.testng.annotations.Test;
* @author Lee Rhodes
*/
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 }
public float min = 0;
@@ -116,28 +118,26 @@ public class StreamMaker {
float[] stream = makeStream(n, order, offset);
println(order + " n:" + n + " offset: " + offset);
for (int i = 0; i < stream.length; i++) {
- if (i != 0 && i % 21 == 0) { println(""); }
- print(stream[i] + " ");
+ //if (i != 0 && i % 21 == 0) { println(""); }
+ println(i + TAB + (int)stream[i]);
}
println("");
}
@Test
public void checkStreamMaker() {
- printStream(20, Sorted, 0);
- printStream(20, Reversed, 0);
- printStream(20, Zoomin, 0);
- printStream(21, Zoomin, 1);
- printStream(20, Zoomout, 0);
- printStream(21, Zoomout, 1);
- printStream(21, Random, 0);
- printStream(21, Random, 1);
- printStream(20, Sqrt, 0);
- printStream(20, Sqrt, 1);
- printStream(21, Sqrt, 0);
- printStream(21, Sqrt, 1);
- printStream(71, FlipFlop, 0);
- printStream(71, FlipFlop, 1);
+ printStream(100, Sorted, 1);
+ printStream(100, Reversed, 1);
+ //printStream(100, Zoomin, 0);
+ printStream(100, Zoomin, 1);
+ //printStream(100, Zoomout, 0);
+ printStream(100, Zoomout, 1);
+ //printStream(100, Random, 0);
+ printStream(100, Random, 1);
+ //printStream(100, Sqrt, 0);
+ printStream(100, Sqrt, 1);
+ //printStream(100, FlipFlop, 0);
+ printStream(100, FlipFlop, 1);
}
static void print(Object o) { System.out.print(o.toString()); }
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org