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/09/18 04:24:20 UTC
[incubator-datasketches-characterization] branch master updated:
Correction.
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
The following commit(s) were added to refs/heads/master by this push:
new 3311e48 Correction.
3311e48 is described below
commit 3311e48ec969441adeca5fd22317598aef5ac628
Author: Lee Rhodes <le...@users.noreply.github.com>
AuthorDate: Thu Sep 17 21:23:51 2020 -0700
Correction.
---
src/main/java/org/apache/datasketches/ExponentiallySpacedPoints.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/datasketches/ExponentiallySpacedPoints.java b/src/main/java/org/apache/datasketches/ExponentiallySpacedPoints.java
index 8ee68be..ebc62c5 100644
--- a/src/main/java/org/apache/datasketches/ExponentiallySpacedPoints.java
+++ b/src/main/java/org/apache/datasketches/ExponentiallySpacedPoints.java
@@ -47,12 +47,12 @@ public class ExponentiallySpacedPoints {
if (denseHigh) {
for (int i = 0; i < numPoints; i++) {
- final double y = (exp(pow(outArr[i], exponent)) - 1.0) / (E - 1.0);
+ final double y = 1.0 - ( exp(pow(1.0 - outArr[i], exponent)) - 1.0) / (E - 1.0);
outArr[i] = y * range + x1;
}
} else { //denseLow
for (int i = 0; i < numPoints; i++) {
- final double y = 1.0 - ( exp(pow(1.0 - outArr[i], exponent)) - 1.0) / (E - 1.0);
+ final double y = (exp(pow(outArr[i], exponent)) - 1.0) / (E - 1.0);
outArr[i] = y * range + x1;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org