public class DoubleMeanHolder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DoubleMeanHolder.Serializer |
| Modifier and Type | Field and Description |
|---|---|
static Comparator<DoubleMeanHolder> |
COMPARATOR |
static int |
MAX_INTERMEDIATE_SIZE |
| Constructor and Description |
|---|
DoubleMeanHolder(double sum,
long count) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static DoubleMeanHolder |
fromBytes(byte[] data) |
static DoubleMeanHolder |
get(ByteBuffer buf,
int position) |
int |
hashCode() |
static void |
init(ByteBuffer buf,
int position) |
double |
mean() |
byte[] |
toBytes() |
static void |
update(ByteBuffer buf,
int position,
double sum) |
static void |
update(ByteBuffer buf,
int position,
DoubleMeanHolder other) |
void |
update(double sum) |
DoubleMeanHolder |
update(DoubleMeanHolder other) |
public static final int MAX_INTERMEDIATE_SIZE
public static final Comparator<DoubleMeanHolder> COMPARATOR
public void update(double sum)
public DoubleMeanHolder update(DoubleMeanHolder other)
public double mean()
public byte[] toBytes()
public static DoubleMeanHolder fromBytes(byte[] data)
public static void init(ByteBuffer buf, int position)
public static void update(ByteBuffer buf, int position, double sum)
public static void update(ByteBuffer buf, int position, DoubleMeanHolder other)
public static DoubleMeanHolder get(ByteBuffer buf, int position)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.