This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/datasketches-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 07c96067 Automatic Site Publish by Buildbot
07c96067 is described below

commit 07c960670803d6f856d19a3e2daa13f33e85b618
Author: buildbot <[email protected]>
AuthorDate: Tue Sep 12 21:14:31 2023 +0000

    Automatic Site Publish by Buildbot
---
 output/docs/CPC/CpcCppExample.html |  8 ++++----
 output/docs/HLL/HllCppExample.html |  8 ++++----
 output/docs/KLL/KLLCppExample.html | 26 ++++++++++++++------------
 3 files changed, 22 insertions(+), 20 deletions(-)

diff --git a/output/docs/CPC/CpcCppExample.html 
b/output/docs/CPC/CpcCppExample.html
index 618133a5..28bd00b4 100644
--- a/output/docs/CPC/CpcCppExample.html
+++ b/output/docs/CPC/CpcCppExample.html
@@ -540,18 +540,18 @@ int main(int argc, char **argv) {
   // this section deserializes the sketches, produces union and prints the 
result
   {
     std::ifstream is1("cpc_sketch1.bin");
-    datasketches::cpc_sketch sketch1 = 
datasketches::cpc_sketch::deserialize(is1);
+    auto sketch1 = datasketches::cpc_sketch::deserialize(is1);
 
     std::ifstream is2("cpc_sketch2.bin");
-    datasketches::cpc_sketch sketch2 = 
datasketches::cpc_sketch::deserialize(is2);
+    auto sketch2 = datasketches::cpc_sketch::deserialize(is2);
 
     datasketches::cpc_union u(lg_k);
     u.update(sketch1);
     u.update(sketch2);
-    datasketches::cpc_sketch sketch = u.get_result();
+    auto sketch = u.get_result();
 
     // debug summary of the union result sketch
-    sketch.to_stream(std::cout);
+    sketch.to_string();
 
     std::cout &lt;&lt; "Distinct count estimate: " &lt;&lt; 
sketch.get_estimate() &lt;&lt; std::endl;
     std::cout &lt;&lt; "Distinct count lower bound 95% confidence: " &lt;&lt; 
sketch.get_lower_bound(2) &lt;&lt; std::endl;
diff --git a/output/docs/HLL/HllCppExample.html 
b/output/docs/HLL/HllCppExample.html
index 8d87edc4..7e3c3c53 100644
--- a/output/docs/HLL/HllCppExample.html
+++ b/output/docs/HLL/HllCppExample.html
@@ -540,18 +540,18 @@ int main(int argc, char **argv) {
   // this section deserializes the sketches, produces union and prints the 
result
   {
     std::ifstream is1("hll_sketch1.bin");
-    datasketches::hll_sketch sketch1 = 
datasketches::hll_sketch::deserialize(is1);
+    auto sketch1 = datasketches::hll_sketch::deserialize(is1);
 
     std::ifstream is2("hll_sketch2.bin");
-    datasketches::hll_sketch sketch2 = 
datasketches::hll_sketch::deserialize(is2);
+    auto sketch2 = datasketches::hll_sketch::deserialize(is2);
 
     datasketches::hll_union u(lg_k);
     u.update(sketch1);
     u.update(sketch2);
-    datasketches::hll_sketch sketch = u.get_result(type); // type is optional, 
defaults to HLL_4
+    auto sketch = u.get_result(type); // type is optional, defaults to HLL_4
 
     // debug summary of the union result sketch
-    sketch.to_string(std::cout);
+    std::cout &lt;&lt; sketch.to_string();
 
     std::cout &lt;&lt; "Distinct count estimate: " &lt;&lt; 
sketch.get_estimate() &lt;&lt; std::endl;
     std::cout &lt;&lt; "Distinct count lower bound 95% confidence: " &lt;&lt; 
sketch.get_lower_bound(2) &lt;&lt; std::endl;
diff --git a/output/docs/KLL/KLLCppExample.html 
b/output/docs/KLL/KLLCppExample.html
index eefb7ec6..469c0443 100644
--- a/output/docs/KLL/KLLCppExample.html
+++ b/output/docs/KLL/KLLCppExample.html
@@ -556,11 +556,12 @@ int main(int argc, char **argv) {
     u.merge(sketch2);
 
     // Debug output
-    u.to_stream(std::cout);
+    std::cout &lt;&lt; u.to_string();
 
-    std::cout &lt;&lt; "Min, Median, Max values" &lt;&lt; std::endl;
-    const double fractions[3] {0, 0.5, 1};
-    auto quantiles = u.get_quantiles(fractions, 3);
+    std::cout &lt;&lt; "Min: " &lt;&lt; u.get_min_item() &lt;&lt; std::endl;
+    std::cout &lt;&lt; "Max: " &lt;&lt; u.get_max_item() &lt;&lt; std::endl;
+    auto quantiles = u.get_quantiles((double[3]){0.5, 0.75, 0.9}, 3);
+    std::cout &lt;&lt; "Quantiles: 0.5 (median), 0.75, 0.9:\n";
     std::cout &lt;&lt; quantiles[0] &lt;&lt; ", " &lt;&lt; quantiles[1] 
&lt;&lt; ", " &lt;&lt; quantiles[2] &lt;&lt; std::endl;
 
     std::cout &lt;&lt; "Probability Histogram: estimated probability mass in 4 
bins: (-inf, -2), [-2, 0), [0, 2), [2, +inf)" &lt;&lt; std::endl;
@@ -581,7 +582,7 @@ int main(int argc, char **argv) {
   return 0;
 }
 
-Output (will be sligtly different every time due to random input):
+Output (will be slightly different every time due to random input):
 ### KLL sketch summary:
    K              : 200
    min K          : 200
@@ -595,16 +596,17 @@ Output (will be sligtly different every time due to 
random input):
    Sorted         : false
    Capacity items : 565
    Retained items : 394
-   Storage bytes  : 1632
-   Min value      : -3.49
-   Max value      : 4.52
+   Min item      : -3.75
+   Max item      : 4.6
 ### End sketch summary
-Min, Median, Max values
--3.49, 0.51, 4.52
+Min: -3.75359
+Max: 4.60465
+Quantiles: 0.5 (median), 0.75, 0.9:
+0.508168, 1.25914, 1.938
 Probability Histogram: estimated probability mass in 4 bins: (-inf, -2), [-2, 
0), [0, 2), [2, +inf)
-0.0146, 0.313, 0.582, 0.0901
+0.0118, 0.3134, 0.58475, 0.09005
 Frequency Histogram: estimated number of original values in the same bins
-293, 6267, 11639, 1801
+236, 6268, 11695, 1800
 </code></pre></div></div>
 
       </div> <!-- End content -->


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to