public class Histogram extends Object
Constructor and Description |
---|
Histogram(Limits limits)
Build a new histogram using bucket limits from the given Limits
object.
|
Modifier and Type | Method and Description |
---|---|
void |
add(long n) |
List<com.yahoo.statistics.Bucket> |
getBuckets() |
long |
getSum() |
boolean |
isLeaf() |
double |
lowerLimit()
The lower limit for the bucket this histogram represents.
|
void |
put(double[] value)
Increment the corresponding bucket for this data point by 1.
|
void |
put(double[] value,
int dim)
Increment the corresponding bucket for this data point by 1.
|
void |
reset()
Reset all contained buckets.
|
String |
toString() |
double |
upperLimit()
The upper limit for the bucket this histogram represents.
|
public Histogram(Limits limits)
public void put(double[] value)
public void put(double[] value, int dim)
dim
- the index of the first value to consider in value arraypublic void reset()
public double lowerLimit()
public double upperLimit()
public List<com.yahoo.statistics.Bucket> getBuckets()
public long getSum()
public boolean isLeaf()
public void add(long n)
Copyright © 2018. All rights reserved.