public class KahanSummation extends Object
| Constructor and Description |
|---|
KahanSummation() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(double value) |
void |
addAll(double[] values)
Adds the all.
|
u.OptionalDouble |
average() |
void |
combine(KahanSummation other) |
void |
combine(long countA,
double sumA) |
long |
count() |
static KahanSummation |
of(double... a) |
double |
sum() |
String |
toString() |
public static KahanSummation of(double... a)
a - public void add(double value)
value - public void addAll(double[] values)
values - public void combine(long countA,
double sumA)
countA - sumA - public void combine(KahanSummation other)
other - public long count()
public double sum()
public u.OptionalDouble average()
Copyright © 2021. All rights reserved.