public class KahanObject extends Data
Modifier and Type | Field and Description |
---|---|
double |
_correction |
double |
_sum |
Constructor and Description |
---|
KahanObject(double sum,
double cor) |
Modifier and Type | Method and Description |
---|---|
static int |
compare(KahanObject k1,
KahanObject k2) |
boolean |
equals(Object o) |
String |
getDebugName() |
int |
hashCode() |
boolean |
isAllZero() |
void |
read(DataInput in) |
void |
set(double s,
double c) |
void |
set(KahanObject that) |
String |
toString() |
void |
write(DataOutput out) |
getDataType, getMetaData, getPrivacyConstraint, getValueType, removeMetaData, setMetaData, setPrivacyConstraints, updateDataCharacteristics
public static int compare(KahanObject k1, KahanObject k2)
public void read(DataInput in) throws IOException
IOException
public void write(DataOutput out) throws IOException
IOException
public void set(KahanObject that)
public void set(double s, double c)
public boolean isAllZero()
public String getDebugName()
getDebugName
in class Data
Copyright © 2020 The Apache Software Foundation. All rights reserved.