T - the element typepublic static class Reservoir.IntermediateSample<T> extends Object implements Comparable<Reservoir.IntermediateSample<T>>
| Constructor and Description |
|---|
IntermediateSample(double weight,
T element) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Reservoir.IntermediateSample<T> other) |
T |
getElement() |
double |
getWeight() |
public IntermediateSample(double weight,
T element)
public double getWeight()
public T getElement()
public int compareTo(Reservoir.IntermediateSample<T> other)
compareTo in interface Comparable<Reservoir.IntermediateSample<T>>Copyright © 2020 CDAP Licensed under the Apache License, Version 2.0.